TuX as LLG logo
Software
DMX4Linux
Driver Suite for Linux
csv2iif.pl suite
convert PayPal transactions to IIF, OFX, QIF
Hardware
DMX30 Interface
128Ch SPP
DMX43 Interface
2out 2in EPP
LED Hardware
for Linux and Windows
EPROM Sampler
for 8 bits of sound
Misc
CatWeasel
Linux drivers for MK3/4 PCI
pg_trompe
PostgreSQL replication
trycatch
C exception/signal handling lib
Patches
to various software
Tools
and small scripts
Docs
misc documents
Links
to lighting stuff

connect() wrapper

A wrapper function for the connect() system call which can use a shorter timeout. You should use this library via the LD_PRELOAD hook, so an arbitrary program can benefit from shorter timeouts with recompiling.
The default timeout upon connect() is now 10 seconds. You can change this value by setting the CONNECT_TIMEOUT environment variable. It accepts an integer which is interpreted as seconds. To use the connect-wrapper start your program like this:
CONNECT_TIMEOUT=12 LD_PRELOAD="/path/to/connect_wrapper.so $LD_PRELOAD" telnet 1.1.1.1

For questions and suggestions contact Dirk Jagdmann <doj@cubic.org>.

Download

Version 1.0 - 2007-06-22: connect_wrapper-1.0.tar.gz


Search:
https://llg.cubic.org © 2001-2024 by Dirk Jagdmann