How do you Accept NonBlocking TCP requests

Posted on 2003-03-18
Medium Priority
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?
Question by:stauffec

Accepted Solution

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:


(uses winsock)

Expert Comment

ID: 9316687
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 
Post your closing recommendations!  No comment means you don't care.

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In this video I will demonstrate how to set up Nine, which I now consider the best alternative email app to Touchdown.
Watch the video to learn how one can deal with PST file corruption issue with an outstanding Kernel for Outlook PST Repair Tool easily. Using this tool, non-technical users can swiftly perform the repair process to restore their essential data witho…

624 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