version 1.1.2.1, 2001/08/01 21:07:09
|
version 1.1.2.2, 2001/08/01 21:34:56
|
|
|
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
|
extern Uint32 _socketInterfaceRefCount = 0; |
|
|
void Socket::close(Sint32 socket) | void Socket::close(Sint32 socket) |
{ | { |
#ifdef PEGASUS_OS_TYPE_WINDOWS | #ifdef PEGASUS_OS_TYPE_WINDOWS |
|
|
#endif | #endif |
} | } |
| |
#if 0 |
void Socket::initializeInterface() |
// ATTN: implement this! |
{ |
Boolean Socket::getBlocking() const |
#ifdef PEGASUS_OS_TYPE_WINDOWS |
|
if (_socketInterfaceRefCount == 0) |
{ | { |
|
WSADATA tmp; |
|
|
|
if (WSAStartup(0x202, &tmp) == SOCKET_ERROR) |
|
WSACleanup(); |
|
} |
|
|
|
_socketInterfaceRefCount++; |
|
#endif |
} | } |
|
|
|
void Socket::uninitializeInterface() |
|
{ |
|
#ifdef PEGASUS_OS_TYPE_WINDOWS |
|
_socketInterfaceRefCount--; |
|
|
|
if (_socketInterfaceRefCount == 0) |
|
WSACleanup(); |
#endif | #endif |
|
} |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |