Peer to peer
We have been using a server app that handles the connections. We could change the code in the device to also send and receive data. Due to the nature of TCP, in UWP apps we need two connections; although you can send and receive data on the same socket, there is no way to create a callback that is called when data is available.
The great thing about having a central server is that multiple devices can connect to it. You could even host that server somewhere in the cloud and share data with devices all over the world.
But what if you have two devices that are in the same area and need to share some data every now and then? Would it not be a better solution to have them talk to one and another directly? This will remove the dependency ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access