MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / Accept

Method Accept

src/network/socket_wrapper.hpp:260–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258 }
259
260 inline TcpSocket Accept() {
261 SOCKET newfd = accept(sockfd_, NULL, NULL);
262 if (newfd == INVALID_SOCKET) {
263 Log::Fatal("Socket accept error, code: %d", GetLastError());
264 }
265 return TcpSocket(newfd);
266 }
267
268 inline int Send(const char *buf_, int len, int flag = 0) {
269 int cur_cnt = send(sockfd_, buf_, len, flag);

Callers 1

ListenThreadMethod · 0.45

Calls 1

TcpSocketClass · 0.70

Tested by

no test coverage detected