diff options
Diffstat (limited to 'src/trinitycore/RASocket.h')
-rw-r--r-- | src/trinitycore/RASocket.h | 12 |
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 |