Server connection detection

Started by
0 comments, last by GameDev.net 24 years, 4 months ago
Is there any function that detects an incoming connection? I am writing a program that has a client and server portion of code, and under the client part all I need is to connect with the server. Under the server portion I need it to detect this connection, call a few functions and then close the connection. It sounds pretty simple, but I've yet to find someone to help me with it. If you can help me, please do, thanks!
Advertisement
I'm assuming you are using C/C++.

check out the documentation for

socket()
listen()
accept()
and recv();

--
Richard Rice
GameSpy Industries

This topic is closed to new replies.

Advertisement