diff options
| author | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:44 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:44 +0200 |
| commit | ca28c0e618890330d429c0dc12429255b20f0c90 (patch) | |
| tree | ecc02da0184cf4e8bdba94dcdd831abdd1e51b3c /thrd.cpp | |
| parent | b3a99e6e15af3be25394e66d1138bb2682f565c3 (diff) | |
tagging ychat-0.5.0ychat-0.5.0
Diffstat (limited to 'thrd.cpp')
| -rwxr-xr-x | thrd.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -10,20 +10,19 @@ using namespace std; thrd::thrd( int i_sock ) { - this->i_sock = i_sock; + this->i_sock = i_sock; } thrd::~thrd() { - shutdown ( get_sock() , 2 ); - close ( get_sock() ); + shutdown ( get_sock() , 2 ); + close ( get_sock() ); } void thrd::run() { - s_sock::get - ().read_write( this, i_sock ); + s_sock::get().read_write( this, i_sock ); } #endif |
