How does telnet differ from a raw tcp connection

后端 未结 3 955
悲哀的现实
悲哀的现实 2021-02-05 06:08

I am trying to send commands to a server via a python script. I can see the socket connection being established on the server. But the commands I am sending across , do not seem

3条回答
  •  余生分开走
    2021-02-05 07:13

    From the Wikipedia page on telnet

    ...User data is interspersed in-band with Telnet control information...

    So, to answer your question, yes, telnet does differ from a raw socket.

    RFC 854 describes the telnet protocol if you want to try implementing it or you could use telnetlib if you'd prefer an existing python client.

提交回复
热议问题