| 122 | } |
| 123 | |
| 124 | void master_fiber::service_on_accept(void* ctx, ACL_VSTREAM *client) |
| 125 | { |
| 126 | master_fiber* mf = (master_fiber *) ctx; |
| 127 | acl_assert(mf != NULL); |
| 128 | |
| 129 | socket_stream* stream = new socket_stream; |
| 130 | if (!stream->open(client)) { |
| 131 | logger_error("open stream error(%s)", acl_last_serror()); |
| 132 | delete stream; |
| 133 | return; |
| 134 | } |
| 135 | |
| 136 | mf->on_accept(*stream); |
| 137 | stream->unbind(); |
| 138 | delete stream; |
| 139 | } |
| 140 | |
| 141 | void master_fiber::thread_init(void* ctx) |
| 142 | { |
nothing calls this directly
no test coverage detected