[英]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.