This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: multithreaded portscan


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]