Introduce Tairon::Net::SocketNotifier class.
[tairon.git] / src / net-core / socketnotifier.cpp
blob7a9db867d0bdf0fd826aee7388959574fc57635b
1 /***************************************************************************
2 * *
3 * Copyright (C) 2006 David Brodsky *
4 * *
5 * This library is free software; you can redistribute it and/or *
6 * modify it under the terms of the GNU Library General Public *
7 * License as published by the Free Software Foundation and appearing *
8 * in the file LICENSE.LGPL included in the packaging of this file. *
9 * *
10 * This library 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 * Library General Public License for more details. *
14 * *
15 ***************************************************************************/
17 #include "socketnotifier.h"
19 namespace Tairon
22 namespace Net
25 /* {{{ SocketNotifier::SocketNotifier(3x Tairon::Core::Functor0<void> *) */
26 SocketNotifier::SocketNotifier(Tairon::Core::Functor0<void> *rrFunctor, Tairon::Core::Functor0<void> *rwFunctor, Tairon::Core::Functor0<void> *errFunctor) : errorFunctor(errFunctor), events(0), readyReadFunctor(rrFunctor), readyWriteFunctor(rwFunctor)
29 /* }}} */
31 /* {{{ SocketNotifier::~SocketNotifier() */
32 SocketNotifier::~SocketNotifier()
34 delete errorFunctor;
35 delete readyReadFunctor;
36 delete readyWriteFunctor;
38 /* }}} */
40 }; // namespace Net
42 }; // namespace Tairon
44 // vim: ai sw=4 ts=4 noet fdm=marker