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

Diff for /pegasus/src/Pegasus/Common/HTTPConnector.cpp between version 1.70 and 1.71

version 1.70, 2006/09/29 19:40:57 version 1.71, 2006/10/04 11:20:36
Line 269 
Line 269 
       AtoE(address.sun_path);       AtoE(address.sun_path);
 #endif #endif
  
       socket = ::socket(AF_UNIX, SOCK_STREAM, 0);        socket = Socket::createSocket(AF_UNIX, SOCK_STREAM, 0);
       if (socket == PEGASUS_INVALID_SOCKET)       if (socket == PEGASUS_INVALID_SOCKET)
          throw CannotCreateSocketException();          throw CannotCreateSocketException();
  
Line 305 
Line 305 
  
  
    // Create the socket:    // Create the socket:
    socket = ::socket(PF_INET, SOCK_STREAM, IPPROTO_TCP);     socket = Socket::createSocket(PF_INET, SOCK_STREAM, IPPROTO_TCP);
    if (socket == PEGASUS_INVALID_SOCKET)    if (socket == PEGASUS_INVALID_SOCKET)
       throw CannotCreateSocketException();       throw CannotCreateSocketException();
  
    // set TCP_NODELAY  
    int opt = 1;  
    setsockopt(socket, IPPROTO_TCP, TCP_NODELAY, (char*)&opt, sizeof(opt));  
   
    // Conect the socket to the address:    // Conect the socket to the address:
    if (::connect(socket,    if (::connect(socket,
                  reinterpret_cast<sockaddr*>(&address),                  reinterpret_cast<sockaddr*>(&address),


Legend:
Removed from v.1.70  
changed lines
  Added in v.1.71

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2