i have already tried the second function in the following manner
# print "\nCalling recv()..."; my $select = IO::Select->new(); $select->add(LINK_HNDL); if($select->can_read(0)) { recv(LINK_HNDL, $temp, $size - length($data), $flags); #print "**$temp**\n"; } else { #print "No data on socket.\n"; }
instead of normal recieve call, but result is the application/server on board is getting slower, even during a healthy run. timeout is getting detected.
so what i want is, some way of setting recv so that it won't block when server is dead(not sure of this term,I mean switching off server(board on which it is running)abruptly).In reply to Re^2: problem with a blocking recv function over socket
by nav1729
in thread problem with a blocking recv function over socket
by nav1729
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |