1
This commit is contained in:
parent
56f576e60d
commit
9dcbd24fd4
@ -35,12 +35,13 @@ namespace a8
|
||||
void Close();
|
||||
bool IsActive();
|
||||
template <typename T>
|
||||
void RegisterSessionClass()
|
||||
void RegisterSessionClass(int max_packet_len)
|
||||
{
|
||||
on_create_client_socket_ =
|
||||
[] (a8::TcpSession** p)
|
||||
[max_packet_len] (a8::TcpSession** p)
|
||||
{
|
||||
*p = new T;
|
||||
(*p)->SetMaxPacketLen(max_packet_len);
|
||||
};
|
||||
}
|
||||
bool SendClientMsg(unsigned short sockhandle, const char *buff, int buffLen);
|
||||
|
Loading…
x
Reference in New Issue
Block a user