|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: [Dailydave] Today's Windows Trivia Event
From: Chris Anley (chris
ngssoftware.com)
Date: Wed Mar 30 2005 - 11:17:11 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Another solution; use select(), and a non-blocking socket...
i = 1;
ioctlsocket( s, FIONBIO, (unsigned long *)&i );
Then implement the timeout of your choice with select(). If you're
banner grabbing, you might want to
setsockopt( s, SOL_SOCKET, SO_RCVTIMEO, ...
to set a recieve timeout. Also, you might want calls to block after the
connect, so you can set the socket to blocking again with
i = 0;
ioctlsocket( s, FIONBIO, (unsigned long *)&i );
Probably less tidy than you wanted, but that should work.
-chris.
Dave Aitel wrote:
> Conundrum:
> setsockopt(sock,SO_DONOTSUCK);
_______________________________________________
Dailydave mailing list
Dailydave
lists.immunitysec.com
https://lists.immunitysec.com/mailman/listinfo/dailydave
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]