version 1.39, 2010/10/13 13:46:26
|
version 1.39.2.1, 2013/06/03 22:35:13
|
|
|
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) |
|
|
return socket(domain,type,protocol); | return socket(domain,type,protocol); |
} | } |
| |
|
#ifdef PEGASUS_OS_ZOS |
bool sendTcpipMsg = true; | bool sendTcpipMsg = true; |
|
#endif |
| |
while (1) | while (1) |
{ | { |