Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

blocking tcp server

Status
Not open for further replies.

zildjohn01

Programmer
Sep 6, 2005
10
US
hi, i am setting up a tcp server, and was wondering if there is a way to have the Listen() method block the calling thread, or to get a notification when a connection attempt is made. my current implementation has a for(;;) loop calling the Accept method, but this is too processor intensive.

Also, as a side note, is there a way to determine the source address of an attempted connection before accepting/denying it?

Thx in advance,
John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top