this is my current code for data arrival the simple one
Code:
 Private Sub sock1_DataArrival(ByVal bytesTotal As Long)
Dim hash As String
Dim strHeader As String

sock1.GetData dat, vbString  'writes the new data in our string dat ( string format )
Debug.Print dat
TxtAscii = TxtAscii & "server : " & StringToHex(dat) & vbCrLf
now, i get lots of incomming data and i handle them by command buttons for now i know its lame, so when a certain data arrives i trigger a command manually and it fires a tcp packet ...and this is how i have been interacting with the server all this time..however, the transaction have been successful so far, i would like to handle incoming data automatically..(from my code) in order to do so , what all things i need to know ?