Dim tcpClient As Socket
Dim tcpFlusso As AsyncStreams
dim mymessage as string
tcpFlusso.Initialize(tcpClient.InputStream,tcpClient.OutputStream,"tcpFlusso")
mymessage="1234"
(connect and so on....)
tcpFlusso.Write(mymessage.GetBytes("UTF8"))
How can I know if the message has been sent?
when I send the message, I am not sure that the connection is OK, and is not a good idea to repeately send a ping-ping handshake...
thank you
Dim tcpFlusso As AsyncStreams
dim mymessage as string
tcpFlusso.Initialize(tcpClient.InputStream,tcpClient.OutputStream,"tcpFlusso")
mymessage="1234"
(connect and so on....)
tcpFlusso.Write(mymessage.GetBytes("UTF8"))
How can I know if the message has been sent?
when I send the message, I am not sure that the connection is OK, and is not a good idea to repeately send a ping-ping handshake...
thank you