MCPcopy Create free account
hub / github.com/bepass-org/proxy / Server

Struct Server

pkg/socks4/server.go:12–26  ·  view source on GitHub ↗

Server is accepting connections and handling the details of the SOCKS4 protocol

Source from the content-addressed store, hash-verified

10
11// Server is accepting connections and handling the details of the SOCKS4 protocol
12type Server struct {
13 // bind is the address to listen on
14 Bind string
15 // ProxyDial specifies the optional proxyDial function for
16 // establishing the transport connection.
17 ProxyDial statute.ProxyDialFunc
18 // UserConnectHandle gives the user control to handle the TCP CONNECT requests
19 UserConnectHandle statute.UserConnectHandler
20 // Logger error log
21 Logger statute.Logger
22 // Context is default context
23 Context context.Context
24 // BytesPool getting and returning temporary bytes for use by io.CopyBuffer
25 BytesPool statute.BytesPool
26}
27
28func NewServer(options ...ServerOption) *Server {
29 s := &Server{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected