Explorar el Código

Updated with latest bug fiz for leaking sockets when a SYNC server is not available.

Built 32bitdll and 64bitdll, tested by building and running SNFMultTest from the command line.
Built SNFMultiSDK_3.1.zip.

git-svn-id: https://svn.microneil.com/svn/PKG-SNF-SDK-WIN/trunk@17 7d91e7c8-5a61-404e-b06a-95855fde9112
master
adeniz hace 12 años
padre
commit
87a9d53bf7

BIN
32bitDll/snfmulti.dll Ver fichero


BIN
32bitDll/vs2008_snfmulti.exp Ver fichero


BIN
32bitDll/vs2008_snfmulti.lib Ver fichero


BIN
64bitDll/snfmulti.dll Ver fichero


BIN
64bitDll/vs2008_snfmulti.exp Ver fichero


BIN
64bitDll/vs2008_snfmulti.lib Ver fichero


BIN
SNFMultiSDK_Windows_3.1.zip Ver fichero


BIN
SNFMultiSDK_Windows_3.1/32bitDll/snfmulti.dll Ver fichero


BIN
SNFMultiSDK_Windows_3.1/32bitDll/vs2008_snfmulti.exp Ver fichero


BIN
SNFMultiSDK_Windows_3.1/32bitDll/vs2008_snfmulti.lib Ver fichero


BIN
SNFMultiSDK_Windows_3.1/64bitDll/snfmulti.dll Ver fichero


BIN
SNFMultiSDK_Windows_3.1/64bitDll/vs2008_snfmulti.exp Ver fichero


BIN
SNFMultiSDK_Windows_3.1/64bitDll/vs2008_snfmulti.lib Ver fichero


+ 7
- 5
SNFMultiSDK_Windows_3.1/CodeDweller/networking.inline.hpp Ver fichero

@@ -216,7 +216,9 @@ inline Socket::Socket() :
}

inline Socket::~Socket() { // When shutting down, be sure
if(isOpen()) close(); // any open socket is closed.
if(INVALID_SOCKET != Handle) { // any open socket is closed without
Network.closeSocket(Handle); // throwing any exceptions.
}
}

inline void Socket::close() { // When we close,
@@ -283,7 +285,7 @@ inline TCPClient::TCPClient(TCPListener& L, hSocket H, SocketAddress& A) :
}

inline TCPClient::~TCPClient() { // When destroying a TCPClient
if(isOpen()) close(); // Close when being destroyed.
try{ if(isOpen()) close(); } catch(...) {} // silently close any open connections.
}

inline void TCPClient::open() { // We provide open() as unsupported.
@@ -337,7 +339,7 @@ inline const char* TCPClient::getRemotePort(char* str) {
//// class TCPHost /////////////////////////////////////////////////////////////

inline TCPHost::~TCPHost() { // When destroying a TCPHost
if(isOpen()) close(); // Close when being destroyed.
try{ if(isOpen()) close(); } catch(...) {} // silently close any open connection.
}

inline bool TCPHost::ReadBufferIsEmpty() { // True if the ReadBuffer is empty.
@@ -368,6 +370,6 @@ inline bool TCPHost::isNonBlocking() {

//// class TCPListener /////////////////////////////////////////////////////////

inline TCPListener::~TCPListener() { // Close when deleting.
close();
inline TCPListener::~TCPListener() { // When destroying a TCPListener
try{ close(); } catch(...) {} // silently close if not already done.
}

Cargando…
Cancelar
Guardar