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

Diff for /pegasus/src/Pegasus/Common/Socket.h between version 1.2 and 1.6

version 1.2, 2001/12/13 14:54:02 version 1.6, 2003/08/14 22:01:27
Line 1 
Line 1 
 //%/////////////////////////////////////////////////////////////////////////////  //%///////////////////////-*-c++-*-/////////////////////////////////////////////
 // //
 // Copyright (c) 2000, 2001 BMC Software, Hewlett-Packard Company, IBM,  // Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM,
 // The Open Group, Tivoli Systems // The Open Group, Tivoli Systems
 // //
 // Permission is hereby granted, free of charge, to any person obtaining a copy // Permission is hereby granted, free of charge, to any person obtaining a copy
Line 31 
Line 31 
 #define Pegasus_Socket_h #define Pegasus_Socket_h
  
 #include <Pegasus/Common/Config.h> #include <Pegasus/Common/Config.h>
   #include <Pegasus/Common/IPC.h>
   #ifdef PEGASUS_OS_TYPE_WINDOWS
   #include <windows.h>
   # ifndef _WINSOCKAPI_
   #   include <winsock2.h>
   # endif
   #else
   # include <cctype>
   #ifndef PEGASUS_OS_OS400
   #   include <unistd.h>
   #else
   #   include <Pegasus/Common/OS400ConvertChar.h>
   #   include <unistd.cleinc>
   #endif
   #ifdef PEGASUS_OS_ZOS
   #   include <string.h>  // added by rk for memcpy
   #endif
   # include <cstdlib>
   # include <errno.h>
   # include <fcntl.h>
   # include <netdb.h>
   # include <netinet/in.h>
   # include <arpa/inet.h>
   # include <sys/socket.h>
   #endif
   #include <Pegasus/Common/Linkage.h>
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
 class Socket  class PEGASUS_COMMON_LINKAGE Socket
 { {
 public: public:
  
Line 44 
Line 70 
     static Sint32 write(Sint32 socket, const void* ptr, Uint32 size);     static Sint32 write(Sint32 socket, const void* ptr, Uint32 size);
  
     static void close(Sint32 socket);     static void close(Sint32 socket);
         static int close2(Sint32 socket);
  
     static void enableBlocking(Sint32 socket);     static void enableBlocking(Sint32 socket);
         static int  enableBlocking2(Sint32 socket);
  
     static void disableBlocking(Sint32 socket);     static void disableBlocking(Sint32 socket);
         static int disableBlocking2(Sint32 socket);
  
     static void initializeInterface();        static void initializeInterface(void);
         static void uninitializeInterface(void);
  
     static void uninitializeInterface();  
  
 private: private:
  
     Socket() { }     Socket() { }
 }; };
  
   
   
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END
  
 #endif /* Pegasus_Socket_h */ #endif /* Pegasus_Socket_h */


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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2