Guys i have a problem, i am working on a telnet server using the MS Winsock Control, take a look at this code...
Private Sub WinsockServer_DataArrival(Index As Integer, ByVal bytesTotal As Long)
Dim indata As String
indy = Index
WinsockServer(indy).GetData indata
If indata = "help" Then
If WinsockServer(indy).State = 7 Then
WinsockServer(indy).SendData ("In order to use blah blah"
End If
End If
You see the problem is when people using a telnet client it sends data to the server after each keystroke so i can't really read when they type "help" because it only reads as h then e then l then p and so on, any ideas on how to do this? I remeber i fixed this in the past but i forgot what I did
Gordon R. Durgha
gd@vslink.net
Private Sub WinsockServer_DataArrival(Index As Integer, ByVal bytesTotal As Long)
Dim indata As String
indy = Index
WinsockServer(indy).GetData indata
If indata = "help" Then
If WinsockServer(indy).State = 7 Then
WinsockServer(indy).SendData ("In order to use blah blah"
End If
End If
You see the problem is when people using a telnet client it sends data to the server after each keystroke so i can't really read when they type "help" because it only reads as h then e then l then p and so on, any ideas on how to do this? I remeber i fixed this in the past but i forgot what I did
Gordon R. Durgha
gd@vslink.net