M
Mathijs
Hi,
I have a small Compact Framework tcpclient application (c#).
This is my connection procedure:
tcpclient = new TcpClient(ip, port);
stream = tcpclient.GetStream();
Sent("HELLO");
stream.BeginRead(ReadBuffer, 0, ReadBuffer.GetLength(0), new
AsyncCallback(DataAvailableCallback), null);
Sent does a stream.Write(). DataAvailableCallback calls the
CommandHandler OnNewCommand, which triggers a function in the GUI part
of the application.
Everything works well (the commands received via the TcpClient are
processed) until I shutdown the server (simulate a network harsh
error?). Then, the GUI part of the application just hangs. I have no
idea where exactly the application hangs.
Any tips for me?
Thanks in advance,
Mathijs.
I have a small Compact Framework tcpclient application (c#).
This is my connection procedure:
tcpclient = new TcpClient(ip, port);
stream = tcpclient.GetStream();
Sent("HELLO");
stream.BeginRead(ReadBuffer, 0, ReadBuffer.GetLength(0), new
AsyncCallback(DataAvailableCallback), null);
Sent does a stream.Write(). DataAvailableCallback calls the
CommandHandler OnNewCommand, which triggers a function in the GUI part
of the application.
Everything works well (the commands received via the TcpClient are
processed) until I shutdown the server (simulate a network harsh
error?). Then, the GUI part of the application just hangs. I have no
idea where exactly the application hangs.
Any tips for me?
Thanks in advance,
Mathijs.