summaryrefslogtreecommitdiff
path: root/thrd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'thrd.cpp')
-rwxr-xr-xthrd.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/thrd.cpp b/thrd.cpp
index 7c9be50..4bac39e 100755
--- a/thrd.cpp
+++ b/thrd.cpp
@@ -4,7 +4,7 @@
#define THRD_CXX
#include "thrd.h"
-#include "SOCK.h"
+#include "s_sock.h"
using namespace std;
@@ -16,12 +16,13 @@ thrd::thrd( int i_sock )
thrd::~thrd()
{
shutdown ( get_sock() , 2 );
+ close ( get_sock() );
}
void
thrd::run()
{
- SOCK::get().read_write( this, i_sock );
+ s_sock::get().read_write( this, i_sock );
}
#endif