mirror of
https://github.com/worldforge/cyphesis
synced 2026-08-13 12:26:04 -04:00
* common/BaseWorld.h, server/CommSocket.h, server/CommIdleSocket.h: Make constructors of some base classes protected. * server/Account.cpp: Note a possible bug in the character creation code. * server/CommIdleSocket.cpp, server/CommIdleSocket.h, server/CommListener.cpp, server/CommListener.h, server/CommLocalClient.cpp, server/CommMetaClient.cpp, server/CommMetaClient.h, server/CommPSQLSocket.cpp, server/CommPSQLSocket.h, server/CommRemoteClient.cpp, server/CommSocket.cpp, server/CommSocket.h, server/CommUnixListener.cpp, server/CommUnixListener.h: Clean up the Comm classes for consistancy and readability.
24 lines
713 B
C++
24 lines
713 B
C++
// This file may be redistributed and modified only under the terms of
|
|
// the GNU General Public License (See COPYING for details).
|
|
// Copyright (C) 2000-2003 Alistair Riddoch
|
|
|
|
#include "CommRemoteClient.h"
|
|
|
|
#include "Connection.h"
|
|
#include "CommServer.h"
|
|
|
|
/// \brief Constructor remote client socket object.
|
|
///
|
|
/// @param svr Reference to the object that manages all socket communication.
|
|
/// @param fd Socket file descriptor
|
|
/// @param addr Address of the remote client.
|
|
CommRemoteClient::CommRemoteClient(CommServer & svr, int fd,
|
|
const std::string & addr) :
|
|
CommClient(svr, fd, *new Connection(addr, *this, svr.m_server))
|
|
{
|
|
}
|
|
|
|
|
|
CommRemoteClient::~CommRemoteClient()
|
|
{
|
|
}
|