-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve handling of non-blocking try-connect (#106)
* refactor encoding into serialization * Improve handling of non-blocking connect * Dont accept tagged messages before start tag is settled * Dont accept events before start tag is settled * Port Zephyr example to new TcpIpChannel API * Address feedback from Lasse
- Loading branch information
Showing
14 changed files
with
302 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#ifndef REACTOR_UC_SERIALIZATION_H | ||
#define REACTOR_UC_SERIALIZATION_H | ||
|
||
#include "proto/message.pb.h" | ||
#include "reactor-uc/error.h" | ||
|
||
int serialize_to_protobuf(const FederateMessage *message, unsigned char *buffer, size_t buffer_size); | ||
int deserialize_from_protobuf(FederateMessage *message, const unsigned char *buffer, size_t buffer_size); | ||
|
||
lf_ret_t deserialize_payload_default(void *user_struct, const unsigned char *msg_buf, size_t msg_size); | ||
|
||
size_t serialize_payload_default(const void *user_struct, size_t user_struct_size, unsigned char *msg_buf); | ||
#endif // REACTOR_UC_SERIALIZATION_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.