(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.24 and 1.25

version 1.24, 2007/12/18 18:50:45 version 1.25, 2008/02/26 19:15:05
Line 77 
Line 77 
                              Uint32 size,                              Uint32 size,
                              Uint32 socketWriteTimeout);                              Uint32 socketWriteTimeout);
  
     static void close(SocketHandle socket);      /**
           Closes a specified socket.  If successful, the socket handle is set to
           PEGASUS_INVALID_SOCKET.
           @param socket The SocketHandle to close.
       */
       static void close(SocketHandle& socket);
  
     static void disableBlocking(SocketHandle socket);     static void disableBlocking(SocketHandle socket);
  
Line 91 
Line 96 
     Socket();     Socket();
 }; };
  
   // Use with AutoPtr to automatically close a socket on error
   struct CloseSocketHandle
   {
       void operator()(SocketHandle* ptr)
       {
           if (ptr)
           {
               Socket::close(*ptr);
           }
       }
   };
   
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END
  
 #endif /* Pegasus_Socket_h */ #endif /* Pegasus_Socket_h */


Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2