version 1.40, 2012/10/22 11:18:18
|
version 1.41, 2012/12/13 14:38:55
|
|
|
int opt = 1; | int opt = 1; |
setsockopt(socket, IPPROTO_TCP, TCP_NODELAY, (char*)&opt, sizeof(opt)); | setsockopt(socket, IPPROTO_TCP, TCP_NODELAY, (char*)&opt, sizeof(opt)); |
} | } |
//------------------------------------------------------------------------------ |
|
// |
#ifdef PEGASUS_OS_ZOS |
// _setInformIfNewTCPIP() |
|
// |
|
//------------------------------------------------------------------------------ |
|
inline void _setInformIfNewTCPIP(SocketHandle socket) | inline void _setInformIfNewTCPIP(SocketHandle socket) |
{ | { |
#ifdef PEGASUS_OS_ZOS |
|
// This function enables the notification of the CIM Server that a new | // This function enables the notification of the CIM Server that a new |
// TCPIP transport layer is active. This is needed to be aware of a | // TCPIP transport layer is active. This is needed to be aware of a |
// restart of the transport layer. When this option is in effect, | // restart of the transport layer. When this option is in effect, |
|
|
SO_EioIfNewTP, | SO_EioIfNewTP, |
(char*)&NewTcpipOn, | (char*)&NewTcpipOn, |
sizeof(NewTcpipOn)); | sizeof(NewTcpipOn)); |
#endif |
|
} | } |
|
#else |
|
inline void _setInformIfNewTCPIP(SocketHandle) |
|
{ |
|
} |
|
#endif |
| |
| |
SocketHandle Socket::createSocket(int domain, int type, int protocol) | SocketHandle Socket::createSocket(int domain, int type, int protocol) |