diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2009-04-04 15:54:00 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2009-04-04 15:54:00 +0200 |
commit | b33009db748fbcbab09a601c930265236289af2e (patch) | |
tree | 47a47cc54abe470bd2055b61ae642e600b207295 | |
parent | 8e106cd6ba045049bfe47186e39eb77c9f4a17c4 (diff) | |
download | wolfbones-b33009db748fbcbab09a601c930265236289af2e.tar.gz wolfbones-b33009db748fbcbab09a601c930265236289af2e.tar.bz2 |
non-blocking connect, but how to test
-rw-r--r-- | docs/network/README | 2 | ||||
-rw-r--r-- | tests/network/test1.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/docs/network/README b/docs/network/README index e011a99..f7fc47b 100644 --- a/docs/network/README +++ b/docs/network/README @@ -28,3 +28,5 @@ Links: networking - http://www.artima.com/articles/io_design_patterns1.html: on Reactor and Proactor and a hybrid the emulated Proactor +- http://www.developerweb.net/forum/forumdisplay.php?s=cb7c1122ba4551d2fa866b1d6cf2b97f&f=70: + UNIX Socket FAQ: very good resource for all kind of detail problems diff --git a/tests/network/test1.c b/tests/network/test1.c index 6986683..7b1119c 100644 --- a/tests/network/test1.c +++ b/tests/network/test1.c @@ -141,6 +141,7 @@ int main( int argc, char *argv[] ) { if( res < 0 ) { if( errno == EINPROGRESS ) { /* this is ok, being connected, we loop later in a select */ + fprintf( stderr, "connecting in progress..\n" ); } else { (void)close( fd ); fprintf( stderr, "connect failed: %s (%d)\n", strerror( errno ), errno ); |