具有两个客户端的服务器C#

具有两个客户端的服务器C#

本文介绍了UDP - 具有两个客户端的服务器C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好b $ b

我设法创建了一个聊天程序,其中两个客户端可以相互发送和接收消息。我正在尝试改进它,以便不是客户端发送给对方,而是首先将消息发送到服务器,然后服务器将其发送给客户端。



关于如何创建服务器的任何想法?



谢谢

解决方案



Hi
I have managed to create a chat program where two clients can send and receive messages from each other. I am trying to improve it so that instead of the clients sending it to each other, the message is first sent to a server and then the server sends it to the client.

Any Ideas on how to create the server?

Thanks

解决方案



这篇关于UDP - 具有两个客户端的服务器C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-26 14:47