declare mobjClient as socket and do the connections and then use the following function.
"" mobjClient.BeginReceive(marData, 0, BUFFER_SIZE, SocketFlags.None, AddressOf ReceiveData, Nothing) ""
Here Receivedata is the sub where u can write the neccessary code.
mardata is a byte array...