mirror of
https://github.com/worldforge/cyphesis
synced 2026-08-13 12:26:04 -04:00
* common/globals.cpp, common/globals.h: Add global variable for the local state directory. * server/Account.cpp, server/Admin.cpp, server/Admin.h, server/Player.cpp: Tighten up some operation checking and add Create handler to Admin in preparation for handling creation of new OOG things. * server/CommLocalClient.cpp, server/CommLocalClient.h, server/CommRemoteClient.cpp, server/CommRemoteClient.h, server/CommUnixListener.cpp, server/CommUnixListener.h, server/CommClient.cpp, server/CommClient.h, server/CommListener.cpp, server/Connection.cpp, server/Connection.h, server/server.cpp: Create new listener and connection classes using unix sockets to allow local trusted connections. * client/ClientConnection.cpp, client/ClientConnection.h, client/CommClient.h, client/CreatorClient.cpp, client/ObserverClient.cpp: Add capability to connect over unix socket.
22 lines
623 B
C++
22 lines
623 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"
|
|
|
|
char CommRemoteClient::ipno[255];
|
|
|
|
CommRemoteClient::CommRemoteClient(CommServer & svr, int fd) :
|
|
CommClient(svr, fd, *new Connection((inet_ntop(AF_INET,
|
|
&((const sockaddr_in&)clientIos.getOutpeer()).sin_addr, ipno, 255)
|
|
? ipno : "UNKNOWN"), *this, svr.server))
|
|
{
|
|
}
|
|
|
|
|
|
CommRemoteClient::~CommRemoteClient()
|
|
{
|
|
}
|