Jump to content

View more

Image of the Day

The beast has a mighty searchlight of evil! #screenshotsaturday https://t.co/bzKepOojDL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Server connection detection

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
1 reply to this topic

#1 Anonymous Poster_Anonymous Poster_*   Guests   

Likes

Posted 27 November 1999 - 07:09 PM

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!

#2 Richard Rice   Members   

122
Like
Likes
Like

Posted 27 November 1999 - 07:09 PM

I'm assuming you are using C/C++.

check out the documentation for

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






Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.