Link to home
Start Free TrialLog in
Avatar of turbot_yu
turbot_yuFlag for Singapore

asked on

2 different ports connections on server

It need to open a tcp server and accept 2 socket connection from 2 different port.

Originally, for one port socket server, it need

socket()
bind()
listen()
accept()

but for another connection from another port, does I need to repeat all the 4 steps again to create another tcp server waiting for the other connection.

Any suggestions, thx.
ASKER CERTIFIED SOLUTION
Avatar of Infinity08
Infinity08
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial