简约的Telnet界面 [英] minimalistic Telnet interface

查看:131
本文介绍了简约的Telnet界面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我找到了一个优秀的telnet客户端,它完美地工作[快速工具:简约的Telnet库],通过代码项目:)。



但是我正在使用的服务器没有提示登录,否则我必须在telnet客户端连接到服务器后提供登录名。在这种情况下,应对上述编码进行略微修改。



我试图相应地修改编码,但失败了。有人可以帮我找到解决方案吗?



我使用的是相同的解决方案快速工具:简约的Telnet库



谢谢&问候,

Hansika

Hi,

I found an excellent telnet client which works perfectly [Quick tool : A minimalistic Telnet library], through code project :).

But the server that I'm using doesn't prompt the login, else i have to supply the login name once the telnet client being connected to the server. In this case a slight modification should be done to the above coding.

I tried to modify the coding accordingly, but failed. Can somebody help me to find the solution please?

I am using the same solution given here "Quick tool : A minimalistic Telnet library"

Thanks & Regards,
Hansika

推荐答案

你的意思是说,一旦连接,服务器什么也没说,你应该发送你的登录信息信息没有被提示?



只要查看代码,如果是这种情况,只需删除阅读说明并使用WriteLines。



Do you mean that once you've connected, the server says nothing and you are expected to send your login info without being prompted?

Just looking at the code, if this is the case, just remove the read instructions and use the WriteLines.

string s = Read(); // not needed as its not sending anything


某些telnet服务器仅支持来自已知IP地址的连接。对于其他客户端,他们要么拒绝连接,要么混淆客户端,接受连接,然后什么都不做(没有数据被接受或发回)。这是你在这里遇到的可能性。
Some telnet servers only support connections from known IP addresses. For other clients, they either refuse connection or to confuse the client, accept the connection and then does nothing (no data is accepted or sent back). It's a possibility that this is what you are experiencing here.


这篇关于简约的Telnet界面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆