Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify socket behavior to hide internals #91

Open
adamrankin opened this issue Jun 21, 2016 · 0 comments
Open

Modify socket behavior to hide internals #91

adamrankin opened this issue Jun 21, 2016 · 0 comments

Comments

@adamrankin
Copy link
Contributor

As per discussion at NAMIC, modifying the socket send and receive functions to take a template argument of message class. Internally, the message class can be queried to calculate the size to send.

Additionally, the Receive function can be made smarter to receive the header and the body inside a single function call. This would lessen the burden on the client to know the internals of the protocol behavior (receive header, parse, receive variable body size).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant