of course it should .. u are writing it the wrong way , in my example i wrote it wront to ... so hwere how it is to be writen :

Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)

.... the routine i gave u in my example before ...

End Sub

note : this example has nothing to do with what jazz wrote .. what jazz wrote is a part of the TCP protocole way to do it ... what i gave u is the UDP way to do it ...

- regards -
- razzaj -