HZNM.COM
welcome to my space
X
Search:  
 HOME   timeouts in recv/send
timeouts in recv/send
Published by: anonym 2009-01-09
Welcome to:hznm.com

  • hello all,

    does blocking calls like recv and/or send have inbuild timeout mechanisums? say eg:-
    server is talking to client ans suddenly client goes down, the server is waiting on a recv(), will it automatically genrate error and thus server can understand that client is down?

    else
    how to implement timeouts ? does we have to provide for all call?(i think , have to) and how can we provide it for blocking calls like send and recv?
    svn.saddi.com/mod_WebObjects/trunk/Adaptor/appcfg.h::
    tcp send/recv buf sizes */ unsigned int recvSize; /* tcp send/recv buf sizes connectTimeout; /* timeouts (seconds) */ unsigned int sendTimeout; unsigned int
    http://svn.saddi.com/mod_WebObjects/trunk/Adaptor/appcfg.h
    HOME

    -dev


  • I seem to have deleted part of my previous post... oops...

    Rob is of course correct about the fact that many systems do no implement those options... and those which do sometimes actually give what they consider the "closest compatible" value for their implementation... which means you have to set the option, then get it to see what value the system actually used... :-/

    Darn this touch pad mouse on my computer!!!

    Michael


  • Um, except for the little fact that Michael failed to mention: many
    systems don't even bother implementing those particular
    sockopts, and even those that do may not behave how you'd
    actually expect them to... ;-)

    I never ever rely on SO_{RCV,SND}TIMEO for anything... You're
    better off just writing your own timeout code... If you have to use
    blocking I/O, then use an alarm()-based timeout... (Assuming
    you've got a single-threaded app, anyway... For multi-threaded
    apps, well, you probably just want to go with non-blocking I/O and
    a select()-based timeout...) But, quite honestly, I wouldn't
    recommend SO_{RCV,SND}TIMEO for ANY use, whatsoever...


  • Using setsockopt( ) should work... the options SO_RCVTIMEO and SO_SNDTIMEO control ...


    Michael





  • How much does getting a small tattoo on your hip/stomach hurt?
    Do anyone else have an itchy anus? ?

    You are looking at:hznm.com's timeouts in recv/send, click hznm.com to home
  • bowser again
  • abc tv script
  • amt ii release dates
  • problem with finding media with plugins
  • how to run iplayer allsp
  • video streaming sites
  • xbmclyrics formatting problem
  • itv catchup fixed
  • slideshow auto refresh
  • request tivo plugin or script
  • linux f spot plugin request
  • request movie site app
  • xbox megaupload rapidshare downloader
  • request python script gui for rtorrent and rssdler to use on xbmc for linux
  •  
  • windows where is xbmc lyric plugin and how i get it in xbmc for windows
  • script specific forums or script specific section in wiki
  • xbmc lyrics partially broken due to lyricwiki com database upgrade
  • request thepiratecity org
  • skin pm3 hd how to use plugins
  • adding to infinity tv script
  • autostartmanager 1 6 updating help needed
  • anyone willing to take a shot fixing these broken scripts plugins
  • xbmc lyrics font sizing
  • video ninja buffering
  • output something to xbmc log with level notice
  • rtmp is now working well ladies gentlemen so lets find some rtmp streaming sites
  • windows caller id display in xbmc for windows
  •  Homepage | Add to favorites | Contact us | Exchange links | LOGIN | Site map | 
    Copyright© 2008 hznm.com        Site made:CFZ