version 1.103, 2006/01/30 16:17:05
|
version 1.104, 2006/06/07 06:58:12
|
|
|
# include <netdb.h> | # include <netdb.h> |
# include <arpa/inet.h> | # include <arpa/inet.h> |
#endif | #endif |
|
# include <netinet/tcp.h> |
| |
PEGASUS_USING_STD; | PEGASUS_USING_STD; |
| |
|
|
throw Exception(parms); | throw Exception(parms); |
} | } |
| |
|
// set TCP_NODELAY |
|
int opt = 1; |
|
setsockopt(_tickle_server_socket, IPPROTO_TCP, TCP_NODELAY, (char*)&opt, sizeof(opt)); |
|
|
// initialize the address | // initialize the address |
memset(&_tickle_server_addr, 0, sizeof(_tickle_server_addr)); | memset(&_tickle_server_addr, 0, sizeof(_tickle_server_addr)); |
#ifdef PEGASUS_PLATFORM_OS400_ISERIES_IBM | #ifdef PEGASUS_PLATFORM_OS400_ISERIES_IBM |
|
|
throw Exception(parms); | throw Exception(parms); |
} | } |
| |
|
// set TCP_NODELAY |
|
setsockopt(_tickle_client_socket, IPPROTO_TCP, TCP_NODELAY, (char*)&opt, sizeof(opt)); |
|
|
// setup the address of the client | // setup the address of the client |
memset(&_tickle_client_addr, 0, sizeof(_tickle_client_addr)); | memset(&_tickle_client_addr, 0, sizeof(_tickle_client_addr)); |
#ifdef PEGASUS_PLATFORM_OS400_ISERIES_IBM | #ifdef PEGASUS_PLATFORM_OS400_ISERIES_IBM |