?
Solved

How do you Accept NonBlocking TCP requests

Posted on 2003-03-18
4
Medium Priority
?
164 Views
Last Modified: 2010-04-04
I am using the component TTCPServer, and I set it to NonBlocking because I want to be able to control the connections, thread the jobs off, and also control how long I wait around for a data to arrive. However, if I set the Server to non-blocking, it seems to accept connections, but I have no way to trap the connections - the OnAccept doesn't seemed to be called. Any ideas how to get the newly created socket as is passed when OnAccept?
0
Comment
Question by:stauffec
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 

Accepted Solution

by:
Churo earned 300 total points
ID: 8240601
how u ever use API socket ?

make a thread as only one function: accept and then pass the socket (u_int) to another thread to manage the connection.

if u want non-blocking use:

ioctlsocket()

(uses winsock)
0
 

Expert Comment

by:CleanupPing
ID: 9316687
stauffec:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question