I am implementing in C on Windows : A channel of communication between a sender and a receiver.
The channel has to receive packages from sender, transfer them to the receiver and then back from receiver to the sender.
The Channel connects to sender (maybe multiple senders) on port 1 and connects to the receiver on port 2
What is a good way of doing it? Both ports 1 and 2 have to be able to send and receive. how to I use select in such situation?
I want to use a single threaded environment.