Hi, I'm wondering if it is possible to code a program that listens to more than one port at the same time, and be capable of manage several clients at the same time (I pretty sure this is possible, otherwise there wouldn't be online games and things like that) and then make those clients that are connected to the program through different ports to communicate each other. Well, I'm asking many things here, my main interest is to know if it is possible to open (and listen) at several ports at the same time. Please post a code as an example.
Btw, I'm using mainly linux, but windows examples are fine too.
Thanks a lot.