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

Method on_connect

dlib/test/iosockstream.cpp:67–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 class serv2 : public server_iostream
66 {
67 virtual void on_connect (
68 std::istream& ,
69 std::ostream& out,
70 const std::string& ,
71 const std::string& ,
72 unsigned short ,
73 unsigned short ,
74 uint64
75 )
76 {
77 try
78 {
79 dlog << LINFO << "serv2: serving connection";
80
81 out << "one two three four five";
82 }
83 catch (error& e)
84 {
85 error_string = e.what();
86 }
87
88 }
89
90
91 public:

Callers

nothing calls this directly

Calls 1

whatMethod · 0.45

Tested by

no test coverage detected