MCPcopy Create free account
hub / github.com/Tencent/tgfx / Socket

Method Socket

src/inspect/Socket.cpp:84–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82static constexpr size_t BufSize = 128 * 1024;
83
84Socket::Socket() : buf((char*)malloc(BufSize)), sock(-1) {
85#ifdef _WIN32
86 initWinSock();
87#endif
88}
89
90Socket::Socket(int sock) : buf((char*)malloc(BufSize)), sock(sock) {
91}

Callers

nothing calls this directly

Calls 1

initWinSockFunction · 0.85

Tested by

no test coverage detected