Changes between Version 7 and Version 8 of Libsrc_functions


Ignore:
Timestamp:
01/20/12 09:20:08 (10 years ago)
Author:
branden
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Libsrc_functions

    v7 v8  
    600600 
    601601Contains routines for using sockets with timeouts. The timeout argument is in milliseconds. A timeout of -1 is used to turn off timing, while a time of 0 means "give it a try an honest try but return if there are delays". If you want the timing features of these routines, then you must create the socket with socket_ew() (and not socket(2)) which puts the socket in non-blocking mode. When the -1 timeout is used, the socket is set to blocking mode for the duration of the socket_ew_common call. To get details of any failures, use socketGetError_ew() in socket_ew.c. The "flags" argument is the same as for the corresponding system socket call. 
     602{{{ 
    602603cc [ flag ... ] file ... -lsocket -lnsl [ library ... ]  (Solaris version) 
    603604 
    604 {{{ 
    605605#include <socket_ew.h> 
    606606