如何连接和接收来自TCP / IP套接字的消息 [英] How To Connected and Receive Messages From TCP/IP Socket existing

查看:99
本文介绍了如何连接和接收来自TCP / IP套接字的消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有主人,





对应标签标题行在我上面,

说明案例如同这个:



有一个TCP / IP套接字服务器已经运行...

以后的应用TCP / IP我要做的必须连接到正在运行的TCP / IP套接字服务器...



他的进程是,我将唤醒TCP / IP以便能够发送通过TCP / IP到TCP / IP套接字服务器的消息已经运行,稍后它将以TCP / IP消息的形式得到响应Socket Server基于发送到服务器的消息。



表示我唤醒但也可以向已经运行的TCP / IP套接字服务器发送消息的TCP / IP应用程序也可以从TCP / IP套接字服务器接收消息。 。



我用C#创建的编程语言。

请求我所有朋友的帮助和指导。

所有opi nions和输入,将我的容量作为参考。

我希望如此,以便朋友可以使用C#代码...它也是很好的蒸汽样本或参考链接..



非常感谢....



向所有人提出问候

dear all master,


corresponding tag title line above me ,
explanation of cases like this :

There is a TCP / IP socket server that is already running ...
later application TCP / IP would I make must be connected to a TCP / IP Socket Server that is running the ...

and his process is , the TCP / IP will I wake up to be able to send messages via TCP / IP to TCP / IP Socket server is already running , and later it will get a response in the form of messages from TCP / IP Socket Server is based on the messages sent to the server .

means that the TCP / IP applications that I wake up but can also send a message to a TCP / IP socket server that is already running , can also receive messages from the TCP / IP socket server ..

programming language that I created using C#.
beg his help and guidance from all my friends .
all opinions and input , will my capacity as a reference .
I hope so, so that friends could give using C # code .. its also good steamy sample or reference links ..

thank you very much....

advance greetings to all

推荐答案

目前还不太清楚你在哪里看到这个问题,但我过去的答案可能会给你一些想法:

套接字编程中的业余问题 [ ^ ],

来自同一端口号码的多个客户端 [ ^ ]。



如果需要,请阅读并询问您的后续问题。



-SA
It's not quite clear where you see the problem, but my past answers may give you some ideas:
an amateur question in socket programming[^],
Multple clients from same port Number[^].

Please read and ask your follow-up questions if you have to.

—SA


这篇关于如何连接和接收来自TCP / IP套接字的消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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