如何使用任何协议(TCP / UDP)SOCKET接收客户端消息并发送到服务器 [英] How to receive client message and send to server using any protocol (TCP/UDP) SOCKET
本文介绍了如何使用任何协议(TCP / UDP)SOCKET接收客户端消息并发送到服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
客户端机器通过ip地址和端口发送一条消息到服务器
服务器技术。服务器从客户端获取消息..
我想回复相同的客户端机器请求..如何创建此程序
使用# net
plz帮帮我
Hi,
The client machine send one message to server through ip address and port with socket
server technology. The server get message from client..
I want to reply to same client machine request.. how to create this program
using #net
plz help me
推荐答案
这个案子看起来并不复杂。您可以在从原始套接字到经典.NET远程处理或WCF的不同级别上使用网络。我在过去的答案中提供了简短的概述:
我如何将byte []发送到其他电脑 [ ^ ],
通信b / w局域网上的两个Windows应用程序。 [ ^ ]。
-SA
This case does not look complicated. You can use networking on different levels from raw sockets to "classical" .NET remoting or WCF. I provided short overview in my past answers:
how i can send byte[] to other pc[^],
Communication b/w two Windows applications on LAN.[^].
—SA
这篇关于如何使用任何协议(TCP / UDP)SOCKET接收客户端消息并发送到服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文