diff options
| author | me_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac> | 2013-07-31 18:29:30 +0000 |
|---|---|---|
| committer | me_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac> | 2013-07-31 18:29:30 +0000 |
| commit | 1acde15b8f9628e6a10308a9fc0004f7f6524b8f (patch) | |
| tree | d4c4b5a43038e55d06cba049a5420e0e50fecad2 /PICA_nodewait.c | |
| parent | 84ce9696f8acf38540a6151aa2963827c32b6e61 (diff) | |
| download | pica-pica-1acde15b8f9628e6a10308a9fc0004f7f6524b8f.tar.gz pica-pica-1acde15b8f9628e6a10308a9fc0004f7f6524b8f.zip | |
debug log messages for opening and closing socket events
git-svn-id: svn://localhost/project_picapica/trunk@253 fb96df88-216d-11de-830c-f3023f12d8ac
Diffstat (limited to 'PICA_nodewait.c')
| -rw-r--r-- | PICA_nodewait.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/PICA_nodewait.c b/PICA_nodewait.c index 00afdce..6a9a70c 100644 --- a/PICA_nodewait.c +++ b/PICA_nodewait.c @@ -126,11 +126,16 @@ while(ap) continue; } + PICA_debug2("created socket %i", nw->nc.sck); + if (0 != connect(nw->nc.sck,ap->ai_addr,ap->ai_addrlen)) { ap=ap->ai_next; + PICA_debug2("connect() failed: %s", strerror(errno)); + CLOSE(nw->nc.sck); + PICA_debug2("closed socket %i", nw->nc.sck); continue; } else |
