Documentation ¶
Index ¶
- Constants
- func NewTunnelBridge() services.Service
- func NewTunnelClient() services.Service
- func NewTunnelServer() services.Service
- func NewTunnelServerManager() services.Service
- type ServerConn
- type TunnelBridge
- type TunnelBridgeArgs
- type TunnelClient
- func (s *TunnelClient) CheckArgs() (err error)
- func (s *TunnelClient) Clean()
- func (s *TunnelClient) GetConn() (conn net.Conn, err error)
- func (s *TunnelClient) GetInConn(typ uint8, data ...string) (outConn net.Conn, err error)
- func (s *TunnelClient) InitService() (err error)
- func (s *TunnelClient) ServeConn(localAddr, ID, serverID string)
- func (s *TunnelClient) ServeUDP(localAddr, ID, serverID string)
- func (s *TunnelClient) Start(args interface{}, log *logger.Logger) (err error)
- func (s *TunnelClient) StopService()
- type TunnelClientArgs
- type TunnelServer
- func (s *TunnelServer) CheckArgs() (err error)
- func (s *TunnelServer) Clean()
- func (s *TunnelServer) GetConn() (conn net.Conn, err error)
- func (s *TunnelServer) GetOutConn(typ uint8) (outConn net.Conn, ID string, err error)
- func (s *TunnelServer) InitService() (err error)
- func (s *TunnelServer) Start(args interface{}, log *logger.Logger) (err error)
- func (s *TunnelServer) StopService()
- func (s *TunnelServer) UDPConnDeamon()
- type TunnelServerArgs
- type TunnelServerManager
- func (s *TunnelServerManager) CheckArgs() (err error)
- func (s *TunnelServerManager) Clean()
- func (s *TunnelServerManager) GetConn() (conn net.Conn, err error)
- func (s *TunnelServerManager) GetOutConn(typ uint8) (outConn net.Conn, ID string, err error)
- func (s *TunnelServerManager) InitService() (err error)
- func (s *TunnelServerManager) Start(args interface{}, log *logger.Logger) (err error)
- func (s *TunnelServerManager) StopService()
- type UDPItem
Constants ¶
View Source
const ( CONN_CLIENT_CONTROL = uint8(1) CONN_SERVER = uint8(4) CONN_CLIENT = uint8(5) )
View Source
const ( CONN_SERVER_MUX = uint8(6) CONN_CLIENT_MUX = uint8(7) )
Variables ¶
This section is empty.
Functions ¶
func NewTunnelBridge ¶
func NewTunnelClient ¶
func NewTunnelServer ¶
func NewTunnelServerManager ¶
Types ¶
type ServerConn ¶
type TunnelBridge ¶
type TunnelBridge struct {
// contains filtered or unexported fields
}
func (*TunnelBridge) CheckArgs ¶
func (s *TunnelBridge) CheckArgs() (err error)
func (*TunnelBridge) Clean ¶
func (s *TunnelBridge) Clean()
func (*TunnelBridge) InitService ¶
func (s *TunnelBridge) InitService() (err error)
func (*TunnelBridge) Start ¶
func (s *TunnelBridge) Start(args interface{}, log *logger.Logger) (err error)
func (*TunnelBridge) StopService ¶
func (s *TunnelBridge) StopService()
type TunnelBridgeArgs ¶
type TunnelClient ¶
type TunnelClient struct {
// contains filtered or unexported fields
}
func (*TunnelClient) CheckArgs ¶
func (s *TunnelClient) CheckArgs() (err error)
func (*TunnelClient) Clean ¶
func (s *TunnelClient) Clean()
func (*TunnelClient) InitService ¶
func (s *TunnelClient) InitService() (err error)
func (*TunnelClient) ServeConn ¶
func (s *TunnelClient) ServeConn(localAddr, ID, serverID string)
func (*TunnelClient) ServeUDP ¶
func (s *TunnelClient) ServeUDP(localAddr, ID, serverID string)
func (*TunnelClient) Start ¶
func (s *TunnelClient) Start(args interface{}, log *logger.Logger) (err error)
func (*TunnelClient) StopService ¶
func (s *TunnelClient) StopService()
type TunnelClientArgs ¶
type TunnelServer ¶
type TunnelServer struct {
// contains filtered or unexported fields
}
func (*TunnelServer) CheckArgs ¶
func (s *TunnelServer) CheckArgs() (err error)
func (*TunnelServer) Clean ¶
func (s *TunnelServer) Clean()
func (*TunnelServer) GetOutConn ¶
func (*TunnelServer) InitService ¶
func (s *TunnelServer) InitService() (err error)
func (*TunnelServer) Start ¶
func (s *TunnelServer) Start(args interface{}, log *logger.Logger) (err error)
func (*TunnelServer) StopService ¶
func (s *TunnelServer) StopService()
func (*TunnelServer) UDPConnDeamon ¶
func (s *TunnelServer) UDPConnDeamon()
type TunnelServerArgs ¶
type TunnelServerManager ¶
type TunnelServerManager struct {
// contains filtered or unexported fields
}
func (*TunnelServerManager) CheckArgs ¶
func (s *TunnelServerManager) CheckArgs() (err error)
func (*TunnelServerManager) Clean ¶
func (s *TunnelServerManager) Clean()
func (*TunnelServerManager) GetConn ¶
func (s *TunnelServerManager) GetConn() (conn net.Conn, err error)
func (*TunnelServerManager) GetOutConn ¶
func (*TunnelServerManager) InitService ¶
func (s *TunnelServerManager) InitService() (err error)
func (*TunnelServerManager) Start ¶
func (s *TunnelServerManager) Start(args interface{}, log *logger.Logger) (err error)
func (*TunnelServerManager) StopService ¶
func (s *TunnelServerManager) StopService()
Click to show internal directories.
Click to hide internal directories.