我们如何在Socket编程中访问2个不同的端口? [英] How can we access 2 different ports in Socket Programming?
本文介绍了我们如何在Socket编程中访问2个不同的端口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨.
PL提供了有关如何通过C Sharp套接字编程通过公共端口服务器访问不同端口上的多个客户端的代码.
Hi.
PLs give the code for how can we access Multiple Clients on different ports through a common port Server through Socket Programming in C sharp.
推荐答案
服务器通常不会访问客户",反之亦然.服务器通常使用一个公共端口供客户端连接,然后动态分配一个端口以与客户端进行通信(不广播时).
有很多库,开放源代码项目和大量用c#编写的有关网络编程的文章(甚至是专门讨论该主题的书籍).
您需要进一步完善您的要求,如果您需要更详细的帮助,则需要进行交流.
干杯.
Servers don''t typically "access" clients, it''s the other way around. Servers often use one common port for the clients to connect to, then dynamically allocate a port for communications with the client (when not broadcasting).
There are libraries, open source projects and a slew of articles written on network programming in c# (even books strictly dedicated to the topic).
You will need to refine what it is you are asking for a little further, and the type of communication that is required if you would like more detailed help.
Cheers.
这篇关于我们如何在Socket编程中访问2个不同的端口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文