FORUM

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: Error in .NET example using SDK
robertpdx
Newbie
Posts: 4
Permalink
Post Error in .NET example using SDK
on: March 14, 2015, 16:45
Quote

I've edited this post from asking a question to pointing out an error in the .NET basic example.

The socket member is being redefined in the Connect() member function, rather than setting class member socket....this leaves the class member socket undefined when entering the CommunicateString, CommunicateValue or CommunicateRangedValue functions.

Changing it from:
Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
to
socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);

fixes the problem.

Thanks,
Robert

admin
Administrator
Posts: 53
Permalink
Post Re: Error in .NET example using SDK
on: March 16, 2015, 18:47
Quote

Thanks for sharing the fix !

Pages: [1]
Mingle Forum by cartpauj
Version: 1.0.34 ; Page loaded in: 0.045 seconds.