I need to send data from a client to a server. In the server code I have:
s = ServerSocket.Ac cept()
If (s.Connected = False) Then
MsgBox("Unable to connect", , "Server Error")
Exit Sub
End If
While (s.Connected = True)
SBytes = s.Receive(SBuff er, 0, SBuffer.Length,
Net.Sockets.Soc ketFlags.None)
MsgBox(SBuffer)
End While
I want to print the data the server received. Right now the server program
crashes when it receives some data. How can I print the data I receive? If
anyone can recommend a good VB2005 book that deals with socket programming I
would love to hear about it.
Thanks,
s = ServerSocket.Ac cept()
If (s.Connected = False) Then
MsgBox("Unable to connect", , "Server Error")
Exit Sub
End If
While (s.Connected = True)
SBytes = s.Receive(SBuff er, 0, SBuffer.Length,
Net.Sockets.Soc ketFlags.None)
MsgBox(SBuffer)
End While
I want to print the data the server received. Right now the server program
crashes when it receives some data. How can I print the data I receive? If
anyone can recommend a good VB2005 book that deals with socket programming I
would love to hear about it.
Thanks,
Comment