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

Method SetTimeout

src/network/socket_wrapper.hpp:119–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117 ~TcpSocket() {
118 }
119 inline void SetTimeout(int timeout) {
120 setsockopt(sockfd_, SOL_SOCKET, SO_RCVTIMEO, reinterpret_cast<char*>(&timeout), sizeof(timeout));
121 }
122 inline void ConfigSocket() {
123 if (sockfd_ == INVALID_SOCKET) {
124 return;

Callers 2

SetLinkerMethod · 0.45
ConstructMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected