MCPcopy Create free account
hub / github.com/Beckhoff/ADS / TcpSocket

Method TcpSocket

AdsLib/Sockets.cpp:256–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254}
255
256TcpSocket::TcpSocket(const struct addrinfo *const host)
257 : Socket(host, SOCK_STREAM)
258{
259 // AdsDll.lib seems to use TCP_NODELAY, we use it to be compatible
260 const int enable = 0;
261 if (setsockopt(m_Socket, IPPROTO_TCP, TCP_NODELAY,
262 (const char *)&enable, sizeof(enable))) {
263 LOG_WARN("Enabling TCP_NODELAY failed");
264 }
265}
266
267uint32_t TcpSocket::Connect() const
268{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected