Using a hub
So, we have decided we have a couple of devices. We need to transfer data from one item to another. To do this we need a server. This can be a very lightweight device, as long as it accepts TCP/IP data coming in over a Wi-Fi connection. It can have any operating system you wish, but I am going for a Windows solution here.
For our demo server, I am writing a very simple console application. These are lightweight and very easy to understand: there is nothing else going on besides the code we write.
Start a new blank solution in Visual Studio. I called mine SharingSolution.sln.
Add a new console application to the solution. I called mine Server. I will be typing this name in the command line quite a lot to start it up, so I want ...
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