G
Guest
I'm using the following statement to receive info from a TCPListener socket,
Int32 bytes = s.Receive(RecvBytes, RecvBytes.Length, 0);
It works fine but it blocks. I need the receive to not block. On my
TCPListener I just check intermittently for a connection using pending. This
allow it to be non blocking. Is there a way to do this with Receive?
Int32 bytes = s.Receive(RecvBytes, RecvBytes.Length, 0);
It works fine but it blocks. I need the receive to not block. On my
TCPListener I just check intermittently for a connection using pending. This
allow it to be non blocking. Is there a way to do this with Receive?