TCPServer locking when calling accept

A

Alex MacCaw

How do I stop the TCPServer 'locking up' when I call accept?
I'm trying to build a passive ftp server.
 
L

Louis R. Marascio

Alex MacCaw said:
How do I stop the TCPServer 'locking up' when I call accept?
I'm trying to build a passive ftp server.

When you say 'locking up' do you mean it won't return from the method
call until a client has connected? If so, this is typically referred to
as 'blocking'. There is a method on TCPServer called 'accept_nonblock'
that may give you the behavior you are looking for.

Best regards,

Louis
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top