Documentation ¶
Index ¶
- Constants
- func NewTunnelBridge() services.Service
- func NewTunnelClient() services.Service
- func NewTunnelServer() services.Service
- func NewTunnelServerManager() services.Service
- type ClientUDPConnItem
- 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()
- func (s *TunnelClient) UDPGCDeamon()
- func (s *TunnelClient) UDPRevecive(key, ID string)
- 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) UDPGCDeamon()
- func (s *TunnelServer) UDPRevecive(key, ID string)
- func (s *TunnelServer) UDPSend(data []byte, localAddr, srcAddr *net.UDPAddr)
- type TunnelServerArgs
- type TunnelServerManager
- type TunnelUDPConnItem
- type TunnelUDPPacketItem
Constants ¶
View Source
const ( CONN_CLIENT_CONTROL = uint8(1) CONN_SERVER = uint8(4) CONN_CLIENT = uint8(5) )
Variables ¶
This section is empty.
Functions ¶
func NewTunnelBridge ¶
func NewTunnelClient ¶
func NewTunnelServer ¶
func NewTunnelServerManager ¶
Types ¶
type ClientUDPConnItem ¶
type ClientUDPConnItem struct {
// contains filtered or unexported fields
}
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()
func (*TunnelClient) UDPGCDeamon ¶
func (s *TunnelClient) UDPGCDeamon()
func (*TunnelClient) UDPRevecive ¶
func (s *TunnelClient) UDPRevecive(key, ID string)
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) UDPGCDeamon ¶
func (s *TunnelServer) UDPGCDeamon()
func (*TunnelServer) UDPRevecive ¶
func (s *TunnelServer) UDPRevecive(key, ID string)
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) 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()
type TunnelUDPConnItem ¶
type TunnelUDPConnItem struct {
// contains filtered or unexported fields
}
type TunnelUDPPacketItem ¶
type TunnelUDPPacketItem struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.