aboutsummaryrefslogtreecommitdiff
path: root/src/trinitycore/RASocket.h
diff options
context:
space:
mode:
authormaximius <none@none>2009-10-17 15:51:44 -0700
committermaximius <none@none>2009-10-17 15:51:44 -0700
commite585187b248f48b3c6e9247b49fa07c6565d65e5 (patch)
tree637c5b7ddacf41040bef4ea4f75a97da64c6a9bc /src/trinitycore/RASocket.h
parent26b5e033ffde3d161382fc9addbfa99738379641 (diff)
*Backed out changeset 3be01fb200a5
--HG-- branch : trunk
Diffstat (limited to 'src/trinitycore/RASocket.h')
-rw-r--r--src/trinitycore/RASocket.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/trinitycore/RASocket.h b/src/trinitycore/RASocket.h
index 813627766a5..330c85defa4 100644
--- a/src/trinitycore/RASocket.h
+++ b/src/trinitycore/RASocket.h
@@ -17,24 +17,35 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+
/// \addtogroup Trinityd
/// @{
/// \file
+
#ifndef _RASOCKET_H
#define _RASOCKET_H
+
#include "sockets/TcpSocket.h"
+
#include "Common.h"
+
#define RA_BUFF_SIZE 1024
+
class ISocketHandler;
+
/// Remote Administration socket
class RASocket: public TcpSocket
{
public:
+
RASocket(ISocketHandler& h);
~RASocket();
+
void OnAccept();
void OnRead();
+
private:
+
char * buff;
std::string szLogin;
uint32 iSess;
@@ -50,6 +61,7 @@ class RASocket: public TcpSocket
LG, //only login was entered
OK, //both login and pass were given, and they are correct and user have enough priv.
}stage;
+
static void zprint( const char * szText );
};
#endif