MCPcopy Create free account
hub / github.com/e2wugui/zeze / Socket

Method Socket

cxx/Net.cpp:488–498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

486 }
487
488 Socket::Socket(Service* svr)
489 : service(svr)
490 {
491 This.reset(this);
492 IsHandshakeDone = false;
493 SessionId = NextSessionId();
494
495 OutputBuffer.reset(new BufferedCodec());
496 InputBuffer.reset(new BufferedCodec());
497 service->TryStartKeepAliveCheckTimer();
498 }
499
500 /// <summary>
501 /// 下面使用系统socket-api实现真正的网络操作。尽量使用普通api,平台相关。

Callers

nothing calls this directly

Calls 3

NextSessionIdFunction · 0.50
resetMethod · 0.45

Tested by

no test coverage detected