When i send a command to a terminal, there are chances that more than more reply are sent.
Winsock_DataArrival Triggers just once when first reply is sent. Its is not triggering when second reply is sent by the terminal.
I telnet to the terminal and can see multiple replies coming through.

With sockP

If .State <> sckClosed Then
.Close
End If

.Protocol = sckTCPProtocol
.Connect sIPAddress, sIPPort

Do
DoEvents
Loop Until .State = sckConnected Or .State = sckClosed

sockP.SendData sText

Private Sub sockP_DataArrival(ByVal bytesTotal As Long)

Dim rData As String
rData = ""

sockP.GetData rData, vbString
txtReplies.text = rData
DoEvents

End Sub

DataArrival is event is just being triggered once. I dont know what am i doing wrong.
Ex: If i send ATE0 .. i get back just ATE0 and not OK which is followed.

I am not much familiar with winsock in vb6 and i cant upgrade to .net at this point.

Please advise.

Thanks