communication-protocol

Real-world cross-platform decentralized asynchronous peer-to-peer communication

微笑、不失礼 提交于 2019-11-30 04:52:23
问题 My knowledge about network programming is limited, so, all the comments are more than welcome. Essentially my question boils down to the following question: Q1. Is there really such a thing as decentralized asynchronous cross-platform peer-to-peer communication ? Let me explain myself. If we have two http servers running on computers with actual IP addresses, then clearly the answer is yes, assuming one writes a protocol for the interaction. To go one step further, if one of them (or both) is

Objective-C networking - best practices?

一个人想着一个人 提交于 2019-11-29 02:52:42
问题 I'm building an Objective-C app that has both a server and a client. The client can send updates to the server, and the server needs to be able to send updates to each connected client. I've been thinking about how best to implement this system, but am asking for your suggestions. Currently, I'm thinking that when new updates are available, the server will use threads to send the update to each client in turn. If a client times out, they are disconnected. I have very little networking