javascript客户端连接到.net tcpserver [英] javascript client connect to .net tcpserver

查看:118
本文介绍了javascript客户端连接到.net tcpserver的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在尝试实现某种信息系统.
系统应该像这样工作:
.Net程序通过Tcp服务器提供数据,
浏览器客户端应连接到服务器并显示传入的数据.
我想我能做到的唯一方法就是通过javascript.
你们中有人有经验吗,或者可以给我建议,
我可以为此使用哪些组件?

亲切的问候
Manuel

Hi,

i am trying to realize some kind of an information system.
The system should work like that:
.Net Program provides Data via a Tcp Server,
Browser clients should connect to server and display the incoming data.
I guess the only way i can do that is via javascript.
Does anyone of you have experience with such things, or can give me advice,
which components i can use for this?

Kind regards
Manuel

推荐答案

请考虑我对问题的评论,以此作为对这种方法的强烈警告.

如果您仍要使用它,请参阅:
http://code.google.com/p/jsocket/ [ http://socket.io/ [ ^ ].

尝试找到更多内容:
http://bit.ly/VpKzi9 [ ^ ].



这就是您可以用PHP做到的方式.对于服务器端,尤其是PHP,由于我试图在对该问题的评论中进行解释的原因(请参见PHP上的内容)以及以下答案,定制网络更为常见:
http://php.net/manual/en/ref.sockets.php [ ^ ].

—SA
Please consider my comments to the question as a big warning against this approach.

If you still want to use it, please see:
http://code.google.com/p/jsocket/[^],
http://socket.io/[^].

Try to find some more:
http://bit.ly/VpKzi9[^].



This is how you can do it in PHP. For server side, with PHP in particular, custom networking is way more usual, by the reasons I tried to explain in comments to the question (please see the on on PHP) and this answer:
http://php.net/manual/en/ref.sockets.php[^].

—SA


这篇关于javascript客户端连接到.net tcpserver的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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