| 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,平台相关。 |
nothing calls this directly
no test coverage detected