I am new to C# and am writing a program that will run on a pc and allow either another program or an external device, like a touchpanel control system, to connect to it. I have the rest of my code ready, but I can't figure out how to make the socket connection work.
I need the following
My application listens for a connection.
Device connects to my application.
the socket stays open until it is disconnected by the device.
The application must be able to send to or receive from the device at any time, full duplex. Neither operation can block or depend on the other.
This seems like something that would be common, but I can't seem to find a good enough example or thread here on Bytes to get me going in the right direction. Can anyone hep?
I need the following
My application listens for a connection.
Device connects to my application.
the socket stays open until it is disconnected by the device.
The application must be able to send to or receive from the device at any time, full duplex. Neither operation can block or depend on the other.
This seems like something that would be common, but I can't seem to find a good enough example or thread here on Bytes to get me going in the right direction. Can anyone hep?
Comment