I have created Client program and now I am trying to make Server.

What do I have to do to tell my program to "listen" on - for example - port 1234h for incoming connection of any IP ?
Create "socket" what next? When I use "connect" I know what to do, but what with "listen"function" ?
Posted on 2002-11-11 12:20:55 by slonik
You will have to 'bind' it to a specific port number (and optionally, an IP) before calling listen. You can do this with the bind function. Iczelion explains this in his winsock tutorial.

Posted on 2002-11-11 12:33:02 by Thomas