This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: multithreaded portscan
- To: Alex <alexl@i-france.com>
- Subject: Re: multithreaded portscan
- From: Mumit Khan <khan@xraylith.wisc.EDU>
- Date: Sat, 19 Jun 1999 18:28:04 -0500
- cc: cygwin@sourceware.cygnus.com
Alex <alexl@i-france.com> writes:
> i am writing a portscan and i have the following problems
> connect() always return -1
> socket() always return the same socket for many threads
> and i think that's why connect() always fail
> but i don't know how to solve this problem
> is socket() thread safe ? and what can i do to get it worked ?
Cygwin b20.1 is not thread safe, and so you simply cannot expect
this to work. It may work by accident, but it's not designed for it
yet.
There is experimental threading support in newer development
snapshots (you have to build it with --enable-threads); so if
you're looking for thread support, you should work with one
of the dev snapshots.
Regards,
Mumit
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com