简体   繁体   English

客户端与服务器之间的通信

[英]Communication between client and server

I want to make a client and server app. 我想制作一个客户端和服务器应用程序。 The client would be able to send a request and receive the relevant data that the server would make. 客户端将能够发送请求并接收服务器将做出的相关数据。 The client would run on a single computer with a static IP address and the clients would run on multiple machines. 客户端将在具有静态IP地址的单台计算机上运行,​​而客户端将在多台计算机上运行。

So far I've been trying to use Remoting but couldn't get it to work properly as all the examples I found seem to be old, is this the best way to enable this service or is there a better way to do this? 到目前为止,我一直在尝试使用Remoting,但由于我发现的所有示例似乎都过时,因此无法使其正常工作,这是启用此服务的最佳方法还是有更好的方法?

I used the answer that was posted by sipwiz on this question: How can I send data over the internet using a socket? 我使用了sipwiz发布的关于以下问题的答案: 如何使用套接字通过Internet发送数据? , I modified the code to send and recive a serialized tuple and it works great for my needs. ,我修改了代码以发送和接收序列化元组,它非常适合我的需求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 客户端和服务器之间的通信层 - Communication layer between client and server 服务器与客户端之间的持续通信 - Continuous communication between server and client WinForms的服务器和客户端之间的通信 - Communication between server and client for WinForms 客户端和服务器之间的Silverlight通信 - silverlight communication between client and server 创建端口并启动客户端和服务器之间的通信 - creating ports and initiating communication between client and server 服务器和客户端连接C#之间的通信 - Communication between server and client connection C# 客户端和服务器之间的通信介体(控制器?) - Communication mediator (controller?) between client and server 在服务器和客户端之间的网络通信期间,与客户端的连接异常终止 - The connection with the client was abnormally terminated during the network communication between the server and the client C#客户端和PHP服务器之间的安全通信 - Secure communication between a C# client and a PHP Server 服务器和客户端之间以两种方式进行进程间通信的最佳方式 - Best way for interprocess communication in two ways between a server and a client
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM