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

Add support for Netstring format #86

Closed
TitaneBoy opened this Issue Jan 26, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@TitaneBoy
Copy link

TitaneBoy commented Jan 26, 2017

Hi everyone.
I was wondering if there is a way to support in your great module a support for Netstring format for both Server and Client side with TCP interface.

My issue is that I'm trying to communicate to a client/server tcp lib written in C++ (anyrpc) by using your server/client (with tcp interface). But it looks there is no standard way to communicate in TCP way. And unfortunetly, the lib written in C++ use a Netstring format to communicate with others. anyrpc server waits for a request in Netstring format and anyrpc client sends request in Netstring format. So When I'm trying to use your lib to communicate with anyrpc tcp clients/servers , it fails.

Is there a clean way to add an option in your client/server to encapsulate the data (received and sent by the server/client) in Netstring format ?

Thank you very much for your answer.

@tedeh

This comment has been minimized.

Copy link
Owner

tedeh commented Feb 11, 2017

Thanks, but support for Netstring is something you should be able to implement by subclassing TcpServer and TcpClient quite easily. It is not going into core, but if you are able I suggest you release it as a plugin named something like "jayson-netstring" or some such. If you do this I can link to it from the README.

@tedeh tedeh closed this Feb 11, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.