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

Sending object to C# TCP server #16

Open
hubertcy opened this issue Dec 24, 2017 · 0 comments
Open

Sending object to C# TCP server #16

hubertcy opened this issue Dec 24, 2017 · 0 comments
Labels

Comments

@hubertcy
Copy link

Hi,

I am upgrading one side of my PC to use C# instead of C while the other side must stay in C. I can send from C side no problem. The problem is at the C# receiving side. I am unable to create a binn object to use binn functions. I did try to use C# method to read incoming stream like below.

byte[] dataBuf = new byte[received];
Array.Copy(_buffer, dataBuf, received);
string text = Encoding.ASCII.GetString(dataBuf);
Console.WriteLine(text);

I am unable to de-serialize correctly. I tried to use the binn-1.0.dll in C# but I got stuck needing to create a binn object in C#. Could #anyone enlighten me?

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

No branches or pull requests

2 participants