blahblahboring
Newcomer
- Joined
- Oct 21, 2004
- Messages
- 4
hi, im resonably new to networking and tcp clients in vb.net so please bear with me.
im writing a basic upon basic program to send a message from one computer to another. ive got two clients ones listening for a connection the other obviously will be sending the messge.
ive been able to get the connection established, however when trying to write to the network stream i am confronted with 'callback as asyncallback' as one of the parts of the beginwrite function.
what in the blue hell does this mean?!?!? MSDN has offered very little support so far.
thanks for your help:
im writing a basic upon basic program to send a message from one computer to another. ive got two clients ones listening for a connection the other obviously will be sending the messge.
ive been able to get the connection established, however when trying to write to the network stream i am confronted with 'callback as asyncallback' as one of the parts of the beginwrite function.
what in the blue hell does this mean?!?!? MSDN has offered very little support so far.
thanks for your help:
Visual Basic:
Dim listener As New TcpClient("0.0.0.0", 9)
Dim byteMsg As Byte() = System.Text.Encoding.ASCII.GetBytes(txtMsgToSend.Text)
Dim ns As NetworkStream
ns.BeginWrite(bytemsg,0,bytemsg.Length,CALLBACKASSYSTEM.ASYNCCALLBACK, state)