MCPcopy Create free account
hub / github.com/davisking/dlib / no_write_thread

Method no_write_thread

dlib/test/sockets2.cpp:83–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81 }
82
83 void no_write_thread (
84 )
85 {
86 try
87 {
88 std::unique_ptr<connection> con(get_connection());
89
90 // just do nothing until the connection closes
91 char ch;
92 con->read(&ch, 1);
93 dlog << LDEBUG << "silent connection finally closing";
94 }
95 catch (exception& e)
96 {
97 test_failed = true;
98 dlog << LERROR << e.what();
99 }
100 }
101
102 public:
103 sockets2_tester (

Callers

nothing calls this directly

Calls 2

readMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected