(file) Return to ip.c CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / ProviderManager2 / CMPIR

Diff for /pegasus/src/Pegasus/ProviderManager2/CMPIR/ip.c between version 1.14 and 1.15

version 1.14, 2007/07/29 17:54:47 version 1.15, 2008/10/17 11:07:39
Line 43 
Line 43 
 #if defined PEGASUS_OS_TYPE_WINDOWS #if defined PEGASUS_OS_TYPE_WINDOWS
 # include <winsock2.h> # include <winsock2.h>
 #else #else
 # if defined PEGASUS_PLATFORM_ZOS_ZSERIES_IBM  # if defined PEGASUS_OS_ZOS
 #  include <arpa/inet.h> #  include <arpa/inet.h>
 #else #else
 #  include <error.h> #  include <error.h>
Line 91 
Line 91 
     struct hostent  *hptr;     struct hostent  *hptr;
     int herr=0,rc=0;     int herr=0,rc=0;
  
 #ifdef PEGASUS_PLATFORM_ZOS_ZSERIES_IBM  #ifdef PEGASUS_OS_ZOS
     extern int h_errno;     extern int h_errno;
 #endif #endif
  
Line 122 
Line 122 
 #endif #endif
  
         error_at_line (0, 0, __FILE__, __LINE__,         error_at_line (0, 0, __FILE__, __LINE__,
 #ifdef PEGASUS_PLATFORM_ZOS_ZSERIES_IBM  #ifdef PEGASUS_OS_ZOS
             strerror (h_errno));             strerror (h_errno));
 #elif defined PEGASUS_OS_TYPE_WINDOWS #elif defined PEGASUS_OS_TYPE_WINDOWS
             (char *)lpMsgBuf);             (char *)lpMsgBuf);
Line 151 
Line 151 
     struct hostent hbuf;     struct hostent hbuf;
     char tempbuf[8192];     char tempbuf[8192];
 // masking unability to transform an ip-address via gethostbyname() // masking unability to transform an ip-address via gethostbyname()
 #ifdef PEGASUS_PLATFORM_ZOS_ZSERIES_IBM  #ifdef PEGASUS_OS_ZOS
     extern int h_errno;     extern int h_errno;
     in_addr_t broker_ip_address;     in_addr_t broker_ip_address;
     broker_ip_address = inet_addr(address);     broker_ip_address = inet_addr(address);
Line 184 
Line 184 
             return -1;             return -1;
         }         }
 // masking end of if case for differing between ip-address and host // masking end of if case for differing between ip-address and host
 #ifdef PEGASUS_PLATFORM_ZOS_ZSERIES_IBM  #ifdef PEGASUS_OS_ZOS
     }     }
 #endif #endif
  
Line 196 
Line 196 
     if (( sockfd = socket (     if (( sockfd = socket (
         PF_INET,         PF_INET,
         SOCK_STREAM,         SOCK_STREAM,
 #ifdef PEGASUS_PLATFORM_ZOS_ZSERIES_IBM  #ifdef PEGASUS_OS_ZOS
         0 ) ) == -1)         0 ) ) == -1)
 #else #else
         IPPROTO_TCP ) ) == PEGASUS_CMPIR_INVALID_SOCKET)         IPPROTO_TCP ) ) == PEGASUS_CMPIR_INVALID_SOCKET)
Line 270 
Line 270 
     sin.sin_port = htons ( port );     sin.sin_port = htons ( port );
  
     if (bind ( listen_socket, (struct sockaddr *) &sin, sin_len ) ||     if (bind ( listen_socket, (struct sockaddr *) &sin, sin_len ) ||
 #ifdef PEGASUS_PLATFORM_ZOS_ZSERIES_IBM  #ifdef PEGASUS_OS_ZOS
         listen ( listen_socket, 15 ))         listen ( listen_socket, 15 ))
     {     {
 #else #else


Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2