How do I open up a port with Winsock?
How do I open up a port with Winsock?
What will people say if they hear that I'm a Jesus freak?
What will people do if they find that it's true?
I don't really care if they label me a Jesus freak, there is no disguising the truth!
Jesus Freak, D.C. Talk
-gnu-ehacks
you need to define your port number as such:
#define PORT 31337
Now you need to struct your servers info:
struct sockaddr_in server
Then you need to open it by:
server.sin_port = htons(PORT); //htons* is a conversion