Send correct informations to a http tracker.
[tairent.git] / src / core / netthread.cpp
blob98de34971461c123e4dbb4568de5832cb9227ee8
1 /***************************************************************************
2 * *
3 * Copyright (C) 2006 David Brodsky *
4 * *
5 * This program is free software; you can redistribute it and/or *
6 * modify it under the terms of the GNU General Public License as *
7 * published by the Free Software Foundation and appearing *
8 * in the file LICENSE.GPL included in the packaging of this file. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
13 * General Public License for more details. *
14 * *
15 ***************************************************************************/
17 #include <tairon/net/loop.h>
19 #include "netthread.h"
21 namespace Tairent
24 namespace Core
27 /* {{{ NetThread::NetThread() */
28 NetThread::NetThread() : Tairon::Core::Thread("net"), e(false)
30 loop = new Tairon::Net::Loop();
32 /* }}} */
34 /* {{{ NetThread::~NetThread() */
35 NetThread::~NetThread()
37 delete loop;
39 /* }}} */
41 /* {{{ NetThread::exit() */
42 void NetThread::exit()
44 loop->exit();
46 /* }}} */
48 /* {{{ NetThread::run() */
49 void *NetThread::run()
51 loop->run();
52 return 0;
54 /* }}} */
56 }; // namespace Core
58 }; // namesapce Tairent
60 // vim: ai sw=4 ts=4 noet fdm=marker