Receiving data from socket 
Author Message
 Receiving data from socket


Why when I receiving data from socket (for example I connected with time
server - port 13)
, the function Receive doesn't block although there is no data to receive.
It is still running in while loop (100% CPU!).
When I connect to my Listener - it is working fine. I can receive data, and
Receive function stop and waiting for data (1% CPU!).

Dim clSocket as Socket
While True
clSocket.Receive(receivedBytes, 0, clSocket.Available, SocketFlags.None)
End While

I hope you can understand my english  :-)

Mon, 11 Apr 2005 16:55:59 GMT  
 [ 1 post ] 

 Relevant Pages 

1. is net.socket able to block receiving data until it handles the data

2. socket.receive fails to receive

3. Receiving data using a Socket

4. Receive data through UDP-Socket.....?

5. Winsock DataArrival, socket closing and can't GetData before receiving all the data

6. How can receive Binary Data from Socket?

7. Synchronism between a send and a receive (socket ftp)

8. Socket Receive - Force to wait for complete stream??

9. SOCKET : Receiving and sending in different threads

10. Async UDP Receive and Send from the same socket

11. Socket.Receive method hangs

12. socket.receive [VB .NET]


Powered by phpBB® Forum Software