Bläddra i källkod

Err, revert previous commit. You have to explicitly call close() on sockets

Daniele Bartolini 12 år sedan
förälder
incheckning
87aa226a33
2 ändrade filer med 0 tillägg och 36 borttagningar
  1. 0 18
      engine/os/posix/OsSocket.h
  2. 0 18
      engine/os/win/OsSocket.h

+ 0 - 18
engine/os/posix/OsSocket.h

@@ -68,12 +68,6 @@ public:
 	{
 	}
 
-	//-----------------------------------------------------------------------------
-	~TCPSocket()
-	{
-		close();
-	}
-
 	//-----------------------------------------------------------------------------
 	bool open(const NetAddress& destination, uint16_t port)
 	{
@@ -173,12 +167,6 @@ class TCPListener
 {
 public:
 
-	//-----------------------------------------------------------------------------
-	~TCPListener()
-	{
-		close();
-	}
-
 	//-----------------------------------------------------------------------------
 	bool open(uint16_t port)
 	{
@@ -258,12 +246,6 @@ public:
 	{
 	}
 
-	//-----------------------------------------------------------------------------
-	~UDPSocket()
-	{
-		close();
-	}
-
 	//-----------------------------------------------------------------------------
 	bool open(uint16_t port)
 	{

+ 0 - 18
engine/os/win/OsSocket.h

@@ -69,12 +69,6 @@ public:
 	{
 	}
 
-	//-----------------------------------------------------------------------------
-	~TCPSocket()
-	{
-		close();
-	}
-
 	//-----------------------------------------------------------------------------
 	bool connect(const NetAddress& destination, uint16_t port)
 	{		
@@ -173,12 +167,6 @@ class TCPListener
 {
 public:
 
-	//-----------------------------------------------------------------------------
-	~TCPListener()
-	{
-		close();
-	}
-
 	//-----------------------------------------------------------------------------
 	bool open(uint16_t port)
 	{
@@ -262,12 +250,6 @@ class UDPSocket
 	{
 	}
 
-	//-----------------------------------------------------------------------------
-	~UDPSocket()
-	{
-		close();
-	}
-
 	//-----------------------------------------------------------------------------
 	bool open(uint16_t port)
 	{