mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-10-17 07:03:02 -04:00
34 lines
1.0 KiB
C++
Executable File
34 lines
1.0 KiB
C++
Executable File
// ConsoleConnection.h
|
|
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
|
// Author: Justin Randall
|
|
|
|
#ifndef _INCLUDED_ConsoleConnection_H
|
|
#define _INCLUDED_ConsoleConnection_H
|
|
|
|
//-----------------------------------------------------------------------
|
|
|
|
#include "serverUtility/ServerConnection.h"
|
|
|
|
class ConsoleCommandParser;
|
|
|
|
//-----------------------------------------------------------------------
|
|
|
|
class ConsoleConnection : public ServerConnection
|
|
{
|
|
public:
|
|
ConsoleConnection();
|
|
ConsoleConnection(UdpConnectionMT *, TcpClient *);
|
|
~ConsoleConnection();
|
|
|
|
static void onCommandComplete (const std::string & result, const int trackId);
|
|
void onReceive (const Archive::ByteStream & message);
|
|
private:
|
|
ConsoleConnection & operator = (const ConsoleConnection & rhs);
|
|
ConsoleConnection(const ConsoleConnection & source);
|
|
void parseCommand (const std::string & cmd);
|
|
};
|
|
|
|
//-----------------------------------------------------------------------
|
|
|
|
#endif // _INCLUDED_ConsoleConnection_H
|