C
Carla
Hello All,
I found similar questions but no answers., please advise -
I use a TCPClient for sending data to a TCPServer.
The client opens a connection using the TCPClient class & sending using
the Networkstream class's write method. The server was written in c.
It all goes well.
The problem occurs when the server goes down (closes the socket), then
the write should throw an IOException, but in fact, it throws an
exception only on the second call to write.
(this means I lose the first buffer ...)
I tried to set the NoDelay prop of the TCPClient to yes,
and the SendBufferSize to the exact buffer size I'm sending (~160).
thanx ahead
I found similar questions but no answers., please advise -
I use a TCPClient for sending data to a TCPServer.
The client opens a connection using the TCPClient class & sending using
the Networkstream class's write method. The server was written in c.
It all goes well.
The problem occurs when the server goes down (closes the socket), then
the write should throw an IOException, but in fact, it throws an
exception only on the second call to write.
(this means I lose the first buffer ...)
I tried to set the NoDelay prop of the TCPClient to yes,
and the SendBufferSize to the exact buffer size I'm sending (~160).
thanx ahead