sorry for the dupe but the other thread (http://cboard.cprogramming.com/netwo...e-program.html) was locked. anyway it's not exactly the same situation tho.
C / Unix
i have a client program which connects to a server via socket. works all nice and cozy.
now i want that program to also listen on a specific port for incoming connections. so i went ahead and created a second socket for that and it worked as expected. the problem however is the independent processing of what happens on each socket. i wanna do some stuff on the listening socket but totally different stuff on the client socket but i can only run one loop at a time which doesn't work right then obviously
i did search quite a lot but everything i found was always about separate client and server approaches but never combined in one single program.
so any help is most welcome
been lurking here for a while btw and enjoyed some nice posts every so often ^^