PDA

View Full Version : VB.NET and a Telnet Client


paradigm
12-06-2003, 12:03 PM
Hello i'm working on a basic (for now) telnet client for my own personal use and so far i've been able to collect the data from the remote server but i'm having trouble sending data to that server. Here is the code I use to send datat


Dim networkStream As NetworkStream = tcpClient.GetStream()
Dim strText = Val(txtEnter.Text)
Dim sendBytes As [Byte]() = Encoding.ASCII.GetBytes(strText)
networkStream.Write(sendBytes, 0, sendBytes.Length)



any suggestions? or am i going about this totally wrong?

Thanks
Kristopher Powell