| 169 | } |
| 170 | |
| 171 | int |
| 172 | SocksProxy::acceptEvent(int event, void *data) |
| 173 | { |
| 174 | ink_assert(event == NET_EVENT_ACCEPT); |
| 175 | state = SOCKS_ACCEPT; |
| 176 | Dbg(dbg_ctl_SocksProxy, "Proxy got accept event"); |
| 177 | |
| 178 | clientVC = (NetVConnection *)data; |
| 179 | clientVC->socks_addr.reset(); |
| 180 | |
| 181 | buf->reset(); |
| 182 | |
| 183 | SET_HANDLER(&SocksProxy::mainEvent); |
| 184 | vc_handler = &SocksProxy::state_read_client_request; |
| 185 | |
| 186 | timeout = this_ethread()->schedule_in(this, HRTIME_SECONDS(netProcessor.socks_conf_stuff->socks_timeout)); |
| 187 | clientVIO = clientVC->do_io_read(this, INT64_MAX, buf); |
| 188 | |
| 189 | return EVENT_DONE; |
| 190 | } |
| 191 | |
| 192 | int |
| 193 | SocksProxy::mainEvent(int event, void *data) |
nothing calls this directly
no test coverage detected