TcpClient comunication client that sends data on one thread and listening on another thread.
This is basically a copy of Matt Davis implementation on StackOverflow with lots of added stuff.
- ServerConsole that listens for client communication.
- ClienConsole program that sends data to the server and listens for responses.
- TcpClientLib that contains all the connection logic.
- WinForms project to manually connect and fire data to the server.
- Xamarin.Forms project where I will be eventually using all of this.
There are two ways you can run this.
- Run up ClienConsole and ServerConsole and you will see data flow between each other.
- Run up WinForms and ServerConsole and you'll see (its broken atm) the same but only after you manually send data.
-
All the data I'm sending to the service gets concatenated into one big (1024 byte) string. This is something I was going to research with the WinForms project.
-
WinForms and Xamarin clients are not able to connect to the service and send or receive data. See my Bug 'NetworkStream seams to be writing to socket but stream.DataAvailable in Reciever is always false'
I would REALLY appreciate all the help/pointers you can offer!