MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / CreateSocket

Function CreateSocket

src/test/sock_tests.cpp:31–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31static SOCKET CreateSocket()
32{
33 const SOCKET s = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
34 BOOST_REQUIRE(s != static_cast<SOCKET>(SOCKET_ERROR));
35 return s;
36}
37
38BOOST_AUTO_TEST_CASE(constructor_and_destructor)
39{

Callers 2

BOOST_AUTO_TEST_CASEFunction · 0.85
TcpSocketPairMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected