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" ?
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" ?
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.
Thomas
Thomas