version 1.37, 2003/10/05 23:25:43
|
version 1.38, 2003/10/06 12:47:11
|
|
|
#include "Tracer.h" | #include "Tracer.h" |
#include <Pegasus/Common/MessageLoader.h> //l10n | #include <Pegasus/Common/MessageLoader.h> //l10n |
| |
|
#ifdef PEGASUS_PLATFORM_OS400_ISERIES_IBM |
|
#include "OS400ConvertChar.h" |
|
#endif |
|
|
PEGASUS_USING_STD; | PEGASUS_USING_STD; |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
|
|
AF_UNIX; | AF_UNIX; |
strcpy(reinterpret_cast<struct sockaddr_un*>(_rep->address)->sun_path, | strcpy(reinterpret_cast<struct sockaddr_un*>(_rep->address)->sun_path, |
PEGASUS_LOCAL_DOMAIN_SOCKET_PATH); | PEGASUS_LOCAL_DOMAIN_SOCKET_PATH); |
|
#ifdef PEGASUS_PLATFORM_OS400_ISERIES_IBM |
|
AtoE(reinterpret_cast<struct sockaddr_un*>(_rep->address)->sun_path); |
|
#endif |
::unlink(reinterpret_cast<struct sockaddr_un*>(_rep->address)->sun_path); | ::unlink(reinterpret_cast<struct sockaddr_un*>(_rep->address)->sun_path); |
#else | #else |
PEGASUS_ASSERT(false); | PEGASUS_ASSERT(false); |
|
|
memset(&addr_un, 0, sizeof(addr_un)); | memset(&addr_un, 0, sizeof(addr_un)); |
addr_un.sun_family = AF_UNIX; | addr_un.sun_family = AF_UNIX; |
strcpy(addr_un.sun_path, PEGASUS_LOCAL_DOMAIN_SOCKET_PATH); | strcpy(addr_un.sun_path, PEGASUS_LOCAL_DOMAIN_SOCKET_PATH); |
|
#ifdef PEGASUS_PLATFORM_OS400_ISERIES_IBM |
|
AtoE(addr_un.sun_path); |
|
#endif |
addr = (struct sockaddr*) &addr_un; | addr = (struct sockaddr*) &addr_un; |
addr_size = sizeof(addr_un); | addr_size = sizeof(addr_un); |
_listener.socket(AF_UNIX, SOCK_STREAM, 0); | _listener.socket(AF_UNIX, SOCK_STREAM, 0); |