Hi,
I'm trying to write a telnet in VB and I have a problem when I try to negotiate the TerminalType. The sequence as is defined in RFC1091 is :
Server: IAC DO TERMINAL-TYPE
Client: IAC WILL TERMINAL-TYPE
Server: IAC SB TERMINAL-TYPE SEND IAC SE
Client: IAC SB TERMINAL-TYPE IS DEC-VT220 IAC SE <= until here it works ok
Server: IAC SB TERMINAL-TYPE SEND IAC SE
Client: IAC SB TERMINAL-TYPE IS DEC-VT100 IAC SE
My problem is that I don't get any response from the server regarding the negotiation after I send the TerminalType
, the server just send the login prompt. I don't know, either, if I send correctly the terminal type which is t6530.
I'm trying to write a telnet in VB and I have a problem when I try to negotiate the TerminalType. The sequence as is defined in RFC1091 is :
Server: IAC DO TERMINAL-TYPE
Client: IAC WILL TERMINAL-TYPE
Server: IAC SB TERMINAL-TYPE SEND IAC SE
Client: IAC SB TERMINAL-TYPE IS DEC-VT220 IAC SE <= until here it works ok
Server: IAC SB TERMINAL-TYPE SEND IAC SE
Client: IAC SB TERMINAL-TYPE IS DEC-VT100 IAC SE
My problem is that I don't get any response from the server regarding the negotiation after I send the TerminalType
VB.NET:
tcpSocket.GetStream().Write({255, 250, 24, 0, 84, 54, 53, 51, 48, 255, 240}, 0, 11)
, the server just send the login prompt. I don't know, either, if I send correctly the terminal type which is t6530.