MCPcopy Create free account
hub / github.com/chen3feng/toft / DatagramSocketTest

Method DatagramSocketTest

system/net/socket_test.cpp:52–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50{
51protected:
52 DatagramSocketTest()
53 {
54 EXPECT_TRUE(m_listener.Create(AF_INET));
55 EXPECT_TRUE(m_listener.SetReuseAddress());
56 SocketAddressInet address("127.0.0.1:0");
57 EXPECT_TRUE(m_listener.Bind(address));
58 EXPECT_TRUE(m_listener.GetLocalAddress(&m_address));
59 m_thread.Start(std::bind(&DatagramSocketTest::IoThread, this));
60 }
61
62 ~DatagramSocketTest()
63 {

Callers

nothing calls this directly

Calls 4

GetLocalAddressMethod · 0.80
CreateMethod · 0.45
BindMethod · 0.45
StartMethod · 0.45

Tested by

no test coverage detected