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

Method no_write_thread

dlib/test/sockets2.cpp:63–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61 }
62
63 void no_write_thread (
64 )
65 {
66 try
67 {
68 std::unique_ptr<connection> con(connect("127.0.0.1", port_num));
69
70 // just do nothing until the connection closes
71 char ch;
72 con->read(&ch, 1);
73 dlog << LDEBUG << "silent connection finally closing";
74 }
75 catch (exception& e)
76 {
77 test_failed = true;
78 dlog << LERROR << e.what();
79 }
80 }
81
82 public:
83 sockets2_tester (

Callers

nothing calls this directly

Calls 3

connectFunction · 0.85
readMethod · 0.80
whatMethod · 0.45

Tested by

no test coverage detected