| 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: |