Documentation ¶
Overview ¶
Package tproxy implements proxy.Server for tproxy.
Index ¶
- func NewServer() (proxy.Server, error)
- type Server
- func (s *Server) Close() error
- func (s *Server) Handshake(underlay net.Conn) (net.Conn, netLayer.MsgConn, netLayer.Addr, error)
- func (*Server) Name() string
- func (s *Server) SelfListen() (is, tcp, udp bool)
- func (s *Server) StartListen(infoChan chan<- proxy.TCPRequestInfo, udpInfoChan chan<- proxy.UDPRequestInfo) io.Closer
- func (s *Server) Stop()
- type ServerCreator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
implements proxy.ListenerServer
func (*Server) SelfListen ¶
func (*Server) StartListen ¶
func (s *Server) StartListen(infoChan chan<- proxy.TCPRequestInfo, udpInfoChan chan<- proxy.UDPRequestInfo) io.Closer
type ServerCreator ¶
type ServerCreator struct{ proxy.CreatorCommonStruct }
func (ServerCreator) AfterCommonConfServer ¶
func (ServerCreator) AfterCommonConfServer(ps proxy.Server) (err error)
func (ServerCreator) NewServer ¶
func (ServerCreator) NewServer(lc *proxy.ListenConf) (proxy.Server, error)
func (ServerCreator) URLToListenConf ¶
func (ServerCreator) URLToListenConf(url *url.URL, lc *proxy.ListenConf, format int) (*proxy.ListenConf, error)
Click to show internal directories.
Click to hide internal directories.