M
mythflair
Unregistered / Unconfirmed
GUEST, unregistred user!
Private Sub tcpserver_DataArrival(ByVal bytesTotal As Long)
Dim strdata() As Byte
Dim i, j As Integer
i = tcpserver.BytesReceived
ReDim strdata(i)
tcpserver.GetData strdata, vbByte, i
For j = 0 To i - 1
txtoutput.Text = txtoutput.Text + Hex(strdata(j)) + " "
Next
End Sub
Private Sub txtsenddata_Change()
tcpserver.SendData Right(txtsenddata.Text, 1)
End Sub
Dim strdata() As Byte
Dim i, j As Integer
i = tcpserver.BytesReceived
ReDim strdata(i)
tcpserver.GetData strdata, vbByte, i
For j = 0 To i - 1
txtoutput.Text = txtoutput.Text + Hex(strdata(j)) + " "
Next
End Sub
Private Sub txtsenddata_Change()
tcpserver.SendData Right(txtsenddata.Text, 1)
End Sub