| 700 | }; |
| 701 | |
| 702 | void |
| 703 | start_SocksProxy(int port) |
| 704 | { |
| 705 | Dbg(dbg_ctl_SocksProxy, "Accepting SocksProxy connections on port %d", port); |
| 706 | NetProcessor::AcceptOptions opt; |
| 707 | opt.local_port = port; |
| 708 | netProcessor.main_accept(new SocksAccepter(), NO_FD, opt); |
| 709 | |
| 710 | socksproxy_stat_block = RecAllocateRawStatBlock(socksproxy_stat_count); |
| 711 | |
| 712 | if (socksproxy_stat_block) { |
| 713 | RecRegisterRawStat(socksproxy_stat_block, RECT_PROCESS, "proxy.process.socks.proxy.http_connections", RECD_INT, RECP_PERSISTENT, |
| 714 | socksproxy_http_connections_stat, RecRawStatSyncCount); |
| 715 | |
| 716 | RecRegisterRawStat(socksproxy_stat_block, RECT_PROCESS, "proxy.process.socks.proxy.tunneled_connections", RECD_INT, |
| 717 | RECP_PERSISTENT, socksproxy_tunneled_connections_stat, RecRawStatSyncCount); |
| 718 | } |
| 719 | } |
| 720 | |
| 721 | int |
| 722 | socks5ServerAuthHandler(int event, unsigned char *p, void (**h_ptr)(void)) |
no test coverage detected