cyphesis/server/CommRemoteClient.cpp
Al Riddoch 4f3148695d 2003-03-16 Al Riddoch <alriddoch@zepler.org>
* 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.
2003-03-16 21:26:06 +00:00

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()
{
}