(file) Return to Network.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/Network.h between version 1.5 and 1.6

version 1.5, 2006/08/16 19:31:25 version 1.6, 2006/10/04 11:20:36
Line 77 
Line 77 
 //------------------------------------------------------------------------------ //------------------------------------------------------------------------------
  
 #if defined(PEGASUS_OS_TYPE_UNIX) || defined (PEGASUS_OS_VMS) #if defined(PEGASUS_OS_TYPE_UNIX) || defined (PEGASUS_OS_VMS)
 #   ifdef PEGASUS_PLATFORM_ZOS_ZSERIES_IBM  
 #       define _OPEN_SYS_SOCK_IPV6  
 #   endif  
 #   include <errno.h> #   include <errno.h>
 #   include <sys/types.h> #   include <sys/types.h>
 #   include <fcntl.h> #   include <fcntl.h>
Line 88 
Line 85 
 #   include <arpa/inet.h> #   include <arpa/inet.h>
 #   include <sys/socket.h> #   include <sys/socket.h>
 #   include <sys/time.h> #   include <sys/time.h>
   #   include <net/if.h>
   #   include <sys/ioctl.h>
 #   ifndef PEGASUS_DISABLE_LOCAL_DOMAIN_SOCKET #   ifndef PEGASUS_DISABLE_LOCAL_DOMAIN_SOCKET
 #       include <unistd.h> #       include <unistd.h>
 #       include <sys/un.h> #       include <sys/un.h>
Line 118 
Line 117 
 #   define PEGASUS_SOCKET_ERROR (-1) #   define PEGASUS_SOCKET_ERROR (-1)
 #endif #endif
  
   //------------------------------------------------------------------------------
   //
   // PEGASUS_NETWORK_TCPIP_STOPPED
   //
   // This return code indicates that the transpor layer is
   // stopped and the socket is invalid. The socket must created again.
   //
   //------------------------------------------------------------------------------
   
   #ifdef PEGASUS_OS_ZOS
   #   define PEGASUS_NETWORK_TCPIP_STOPPED EIO
   #else
   #   define PEGASUS_NETWORK_TCPIP_STOPPED 0
   #endif
   
   //------------------------------------------------------------------------------
   //
   // PEGASUS_NETWORK_TCPIP_TRYAGAIN
   //
   // This return code indicates that the transport layer is
   // temporary unavailable and the program can try again.
   //
   //------------------------------------------------------------------------------
   
   #ifdef PEGASUS_OS_ZOS
   #   define PEGASUS_NETWORK_TCPIP_TRYAGAIN EAGAIN
   #else
   #   define PEGASUS_NETWORK_TCPIP_TRYAGAIN 0
   #endif
   
   //------------------------------------------------------------------------------
   //
   // PEGASUS_NETWORK_TRYAGAIN
   //
   // This return code indicates that the network function
   // should be tried again by the program.
   //
   //------------------------------------------------------------------------------
   
   #if !defined(PEGASUS_OS_TYPE_WINDOWS)
   #   define PEGASUS_NETWORK_TRYAGAIN EAGAIN
   #else
   #   define PEGASUS_NETWORK_TRYAGAIN 0
   #endif
   
 //////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
 // //
 // getSocketError() // getSocketError()


Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2