sockets question
C#
1
Posts
1
Posters
0
Views
1
Watching
-
My blocking tcp server looks something like while (true) { recv = ns.Read(message, insertPtr, 1024); if (recv == 0) break; insertPtr += recv; } As it is now, the client sends the data(of various sizes) and the client closing the socket when it is done, thus causing ns.Read to return zero. My question: How can the client get ns.Read to return zero without closing the socket? I'd like to have the server send some data back to the client without having to open a new socket.