- bool HandlePacket(char * buffer);
-
- bool CONN_SYN_ACK_Proc(char * buffer);
- bool ALIVE_SYN_Proc(char * buffer);
- bool DISCONN_SYN_ACK_Proc(char * buffer);
- bool FIN_Proc(char * buffer);
- bool INFO_Proc(char * buffer);
- bool ERR_Proc(char * buffer);
+ bool SendPacket(const void * buffer, size_t length, USER * user);
+ bool HandlePacket(const char * buffer, size_t length, USER * user);
+
+ bool CONN_SYN_ACK_Proc(const void * buffer, USER * user);
+ bool ALIVE_SYN_Proc(const void * buffer, USER * user);
+ bool DISCONN_SYN_ACK_Proc(const void * buffer, USER * user);
+ bool FIN_Proc(const void * buffer, USER * user);
+ bool INFO_Proc(const void * buffer, USER * user);
+ bool ERR_Proc(const void * buffer, USER * user);
+
+ bool Send_CONN_SYN(USER * user);
+ bool Send_CONN_ACK(USER * user);
+ bool Send_DISCONN_SYN(USER * user);
+ bool Send_DISCONN_ACK(USER * user);
+ bool Send_ALIVE_ACK(USER * user);
+
+ bool RealConnect(USER * user);
+ bool RealDisconnect(USER * user);