MCPcopy Create free account
hub / github.com/apache/trafficserver / start_SocksProxy

Function start_SocksProxy

src/traffic_server/SocksProxy.cc:702–719  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

700};
701
702void
703start_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
721int
722socks5ServerAuthHandler(int event, unsigned char *p, void (**h_ptr)(void))

Callers 1

mainFunction · 0.85

Calls 2

RecAllocateRawStatBlockFunction · 0.85
main_acceptMethod · 0.45

Tested by

no test coverage detected