0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-02 18:18:56 +02:00
construct/ircd/client.cc

73 lines
1.7 KiB
C++
Raw Normal View History

/*
2007-12-03 17:59:25 +01:00
* charybdis: an advanced ircd.
* 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>
*
* 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>
2016-08-24 01:08:40 +02:00
using namespace ircd;
namespace ircd {
namespace client {
} // namespace client
} // namespace ircd
2016-09-10 21:57:33 +02:00
///////////////////////////////////////////////////////////////////////////////
//
// client.h
//
2016-09-10 21:57:33 +02:00
client::client::client(boost::asio::io_service *const &ios)
:sock
{
2016-09-10 21:57:33 +02:00
std::make_unique<struct sock>(ios)
}
{
}
2016-09-10 21:57:33 +02:00
client::client::~client()
noexcept
{
}
2016-09-10 21:57:33 +02:00
///////////////////////////////////////////////////////////////////////////////
//
// client_sock.h
//
2016-09-10 21:57:33 +02:00
client::sock::sock(boost::asio::io_service *const &ios)
:sd
{
2016-09-10 21:57:33 +02:00
*ios
}
2016-09-10 21:57:33 +02:00
,timer
{
2016-09-10 21:57:33 +02:00
*ios
}
{
}