(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.10 and 1.19.2.2

version 1.10, 2004/10/17 20:39:17 version 1.19.2.2, 2006/07/30 19:26:30
Line 1 
Line 1 
 //%2004////////////////////////////////////////////////////////////////////////  //%2006////////////////////////////////////////////////////////////////////////
 // //
 // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
 // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
Line 6 
Line 6 
 // IBM Corp.; EMC Corporation, The Open Group. // IBM Corp.; EMC Corporation, The Open Group.
 // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
 // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
   // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
   // EMC Corporation; VERITAS Software Corporation; The Open Group.
   // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
   // EMC Corporation; Symantec Corporation; The Open Group.
 // //
 // 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
 // of this software and associated documentation files (the "Software"), to // of this software and associated documentation files (the "Software"), to
Line 27 
Line 31 
 // //
 // Author: Mike Brasher (mbrasher@bmc.com) // Author: Mike Brasher (mbrasher@bmc.com)
 // //
 // Modified By:  // Modified By: David Dillard, Symantec Corp.  (david_dillard@symantec.com)
 // //
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
 #ifndef Pegasus_Socket_h #ifndef Pegasus_Socket_h
 #define Pegasus_Socket_h #define Pegasus_Socket_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> # include <cctype>
 #ifndef PEGASUS_OS_OS400  #include <Pegasus/Common/Network.h>
 //#   include <unistd.h>  #include <Pegasus/Common/Config.h>
 #else  #include <Pegasus/Common/Linkage.h>
 #   include <Pegasus/Common/OS400ConvertChar.h>  
 #   include <unistd.cleinc>  #ifdef PEGASUS_OS_OS400
   #   include <Pegasus/Common/EBCDIC_OS400.h>
 #endif #endif
   
 #ifdef PEGASUS_OS_ZOS #ifdef PEGASUS_OS_ZOS
 #   include <string.h>  // added by rk for memcpy #   include <string.h>  // added by rk for memcpy
 #endif #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>  
 #ifdef PEGASUS_OS_ZOS  
 #   include <Pegasus/Common/SocketzOS_inline.h>  
 #endif  
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
 class PEGASUS_COMMON_LINKAGE Socket  class Socket
 { {
    public:    public:
  
       static Sint32 read(SocketHandle socket, void* ptr, Uint32 size);
  
       static Sint32 read(Sint32 socket, void* ptr, Uint32 size);      static Sint32 write(SocketHandle socket, const void* ptr, Uint32 size);
  
       static Sint32 write(Sint32 socket, const void* ptr, Uint32 size);      static Sint32 timedWrite(SocketHandle socket,
                                const void* ptr,
                                Uint32 size,
                                Uint32 socketWriteTimeout);
  
       static void close(Sint32 socket);      static void close(SocketHandle socket);
       static int close2(Sint32 socket);  
  
       static void enableBlocking(Sint32 socket);      static void enableBlocking(SocketHandle socket);
       static int  enableBlocking2(Sint32 socket);  
  
       static void disableBlocking(Sint32 socket);      static void disableBlocking(SocketHandle socket);
       static int disableBlocking2(Sint32 socket);  
  
       static void initializeInterface(void);      static void initializeInterface();
       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.10  
changed lines
  Added in v.1.19.2.2

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2