2007-01-25 07:40:21 +01:00
|
|
|
/*
|
2007-12-03 17:59:25 +01:00
|
|
|
* charybdis: an advanced ircd.
|
2007-01-25 07:40:21 +01:00
|
|
|
* client.c: Controls clients.
|
|
|
|
*
|
|
|
|
* Copyright (C) 1990 Jarkko Oikarinen and University of Oulu, Co Center
|
|
|
|
* Copyright (C) 1996-2002 Hybrid Development Team
|
|
|
|
* Copyright (C) 2002-2005 ircd-ratbox development team
|
2007-12-03 17:59:25 +01:00
|
|
|
* Copyright (C) 2007 William Pitcock
|
2016-09-10 21:57:33 +02:00
|
|
|
* Copyright (C) 2016 Charybdis Development Team
|
|
|
|
* Copyright (C) 2016 Jason Volk <jason@zemos.net>
|
2007-01-25 07:40:21 +01:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
|
|
* USA
|
|
|
|
*/
|
|
|
|
|
2016-09-10 21:57:33 +02:00
|
|
|
#include <boost/asio.hpp>
|
|
|
|
#include <ircd/client_sock.h>
|
2007-01-25 07:40:21 +01:00
|
|
|
|
2016-08-24 01:08:40 +02:00
|
|
|
using namespace ircd;
|
|
|
|
|
2016-08-22 03:57:43 +02:00
|
|
|
namespace ircd {
|
|
|
|
namespace client {
|
|
|
|
|
|
|
|
} // namespace client
|
|
|
|
} // namespace ircd
|
|
|
|
|
2016-09-10 21:57:33 +02:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// client.h
|
|
|
|
//
|
2016-08-22 03:57:43 +02:00
|
|
|
|
2016-09-10 21:57:33 +02:00
|
|
|
client::client::client(boost::asio::io_service *const &ios)
|
|
|
|
:sock
|
2007-01-25 07:40:21 +01:00
|
|
|
{
|
2016-09-10 21:57:33 +02:00
|
|
|
std::make_unique<struct sock>(ios)
|
2007-01-25 07:40:21 +01:00
|
|
|
}
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-09-10 21:57:33 +02:00
|
|
|
client::client::~client()
|
|
|
|
noexcept
|
2015-12-13 00:22:21 +01:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-09-10 21:57:33 +02:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// client_sock.h
|
|
|
|
//
|
2007-01-25 07:40:21 +01:00
|
|
|
|
2016-09-10 21:57:33 +02:00
|
|
|
client::sock::sock(boost::asio::io_service *const &ios)
|
|
|
|
:sd
|
2007-01-25 07:40:21 +01:00
|
|
|
{
|
2016-09-10 21:57:33 +02:00
|
|
|
*ios
|
2007-01-25 07:40:21 +01:00
|
|
|
}
|
2016-09-10 21:57:33 +02:00
|
|
|
,timer
|
2016-08-22 03:57:43 +02:00
|
|
|
{
|
2016-09-10 21:57:33 +02:00
|
|
|
*ios
|
2016-08-22 03:57:43 +02:00
|
|
|
}
|
2007-01-25 07:40:21 +01:00
|
|
|
{
|
|
|
|
}
|