P
pavel.orehov
Hi,
I am using UDPClient with C# to communicate with other peer.
I have the problem that when I send a lot of data to the remote peer I
get an error "An operation was attempted on something that is not a
socket". From the beginning everything works fine, I receive and send
data, but after several seconds of communication I get this error. I
send and receive data with a speed of 100 msec average.
I start the client:
mUdpClient = new UdpClient();
mUdpClient.Client.Bind(theIPEndPoint);
And I send:
mUdpClient.Send(pData, pData.Length, mRemoteIPEndPoint);
When the error occurs the "mRemoteIPEndPoint" is okey but the
mUdpClient members seems to be dead.
Thanks,
Pavel
I am using UDPClient with C# to communicate with other peer.
I have the problem that when I send a lot of data to the remote peer I
get an error "An operation was attempted on something that is not a
socket". From the beginning everything works fine, I receive and send
data, but after several seconds of communication I get this error. I
send and receive data with a speed of 100 msec average.
I start the client:
mUdpClient = new UdpClient();
mUdpClient.Client.Bind(theIPEndPoint);
And I send:
mUdpClient.Send(pData, pData.Length, mRemoteIPEndPoint);
When the error occurs the "mRemoteIPEndPoint" is okey but the
mUdpClient members seems to be dead.
Thanks,
Pavel