1
This commit is contained in:
parent
14183d316e
commit
24a004ef01
@ -79,11 +79,6 @@ public:
|
||||
|
||||
};
|
||||
|
||||
static void CreateGameClientSocket(a8::TcpSession **p)
|
||||
{
|
||||
*p = new GGClientSession();
|
||||
}
|
||||
|
||||
static void GSListeneron_error(a8::TcpListener*, int type, int errorid)
|
||||
{
|
||||
f8::UdpLog::Instance()->Debug("GGListeneron_error %d %d", {type, errorid});
|
||||
@ -92,7 +87,7 @@ static void GSListeneron_error(a8::TcpListener*, int type, int errorid)
|
||||
void GGListener::Init()
|
||||
{
|
||||
tcp_listener_ = std::make_shared<a8::TcpListener>();
|
||||
tcp_listener_->on_create_client_socket = CreateGameClientSocket;
|
||||
tcp_listener_->RegisterSessionClass<GGClientSession>();
|
||||
tcp_listener_->on_error = GSListeneron_error;
|
||||
|
||||
tcp_listener_->bind_address = "0.0.0.0";
|
||||
|
2
third_party/a8
vendored
2
third_party/a8
vendored
@ -1 +1 @@
|
||||
Subproject commit a8cb80fd26a567d4323c73358ea9b2d7479e065a
|
||||
Subproject commit 56f576e60d471f0390d12172cf2aa499c0772e93
|
Loading…
x
Reference in New Issue
Block a user