MCPcopy Create free account
hub / github.com/bcndev/bytecoin / TCPSocket

Method TCPSocket

src/platform/Network.hpp:176–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174 typedef std::function<void(void)> D_handler;
175
176 explicit TCPSocket(RW_handler &&rw_handler, D_handler &&d_handler)
177 : rw_handler(std::move(rw_handler)), d_handler(std::move(d_handler)) {}
178 virtual ~TCPSocket() { close(); }
179 void close(); // after close you are guaranteed that no handlers will be called
180 bool is_open() const; // Connecting or connected

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected