Documentation ¶
Index ¶
- Constants
- func NewMuxBridge() services.Service
- func NewMuxClient() services.Service
- func NewMuxServer() services.Service
- func NewMuxServerManager() services.Service
- type ClientUDPConnItem
- type MuxBridge
- type MuxBridgeArgs
- type MuxClient
- func (s *MuxClient) CheckArgs() (err error)
- func (s *MuxClient) Clean()
- func (s *MuxClient) InitService() (err error)
- func (s *MuxClient) ServeConn(inConn *smux.Stream, localAddr, ID string)
- func (s *MuxClient) ServeUDP(inConn *smux.Stream, localAddr, ID string)
- func (s *MuxClient) Start(args interface{}, log *logger.Logger) (err error)
- func (s *MuxClient) StopService()
- func (s *MuxClient) UDPGCDeamon()
- func (s *MuxClient) UDPRevecive(key, ID string)
- type MuxClientArgs
- type MuxServer
- func (s *MuxServer) CheckArgs() (err error)
- func (s *MuxServer) Clean()
- func (s *MuxServer) GetConn(index string) (conn net.Conn, err error)
- func (s *MuxServer) GetOutConn() (outConn net.Conn, ID string, err error)
- func (s *MuxServer) InitService() (err error)
- func (s *MuxServer) Start(args interface{}, log *logger.Logger) (err error)
- func (s *MuxServer) StopService()
- func (s *MuxServer) UDPGCDeamon()
- func (s *MuxServer) UDPRevecive(key, ID string)
- func (s *MuxServer) UDPSend(data []byte, localAddr, srcAddr *net.UDPAddr)
- type MuxServerArgs
- type MuxServerManager
- type MuxUDPConnItem
Constants ¶
View Source
const ( CONN_CLIENT_CONTROL = uint8(1) CONN_SERVER = uint8(4) CONN_CLIENT = uint8(5) )
Variables ¶
This section is empty.
Functions ¶
func NewMuxBridge ¶
func NewMuxClient ¶
func NewMuxServer ¶
func NewMuxServerManager ¶
Types ¶
type ClientUDPConnItem ¶
type ClientUDPConnItem struct {
// contains filtered or unexported fields
}
type MuxBridge ¶
type MuxBridge struct {
// contains filtered or unexported fields
}
func (*MuxBridge) InitService ¶
func (*MuxBridge) StopService ¶
func (s *MuxBridge) StopService()
type MuxBridgeArgs ¶
type MuxClient ¶
type MuxClient struct {
// contains filtered or unexported fields
}
func (*MuxClient) InitService ¶
func (*MuxClient) StopService ¶
func (s *MuxClient) StopService()
func (*MuxClient) UDPGCDeamon ¶
func (s *MuxClient) UDPGCDeamon()
func (*MuxClient) UDPRevecive ¶
type MuxClientArgs ¶
type MuxClientArgs struct { Parent *string ParentType *string CertFile *string KeyFile *string CertBytes []byte KeyBytes []byte Key *string Timeout *int IsCompress *bool SessionCount *int KCP kcpcfg.KCPConfigArgs Jumper *string TCPSMethod *string TCPSPassword *string TOUMethod *string TOUPassword *string }
type MuxServer ¶
type MuxServer struct {
// contains filtered or unexported fields
}
func (*MuxServer) GetOutConn ¶
func (*MuxServer) InitService ¶
func (*MuxServer) StopService ¶
func (s *MuxServer) StopService()
func (*MuxServer) UDPGCDeamon ¶
func (s *MuxServer) UDPGCDeamon()
func (*MuxServer) UDPRevecive ¶
type MuxServerArgs ¶
type MuxServerArgs struct { Parent *string ParentType *string CertFile *string KeyFile *string CertBytes []byte KeyBytes []byte Local *string IsUDP *bool Key *string Remote *string Timeout *int Route *[]string Mgr *MuxServerManager IsCompress *bool SessionCount *int KCP kcpcfg.KCPConfigArgs Jumper *string TCPSMethod *string TCPSPassword *string TOUMethod *string TOUPassword *string }
type MuxServerManager ¶
type MuxServerManager struct {
// contains filtered or unexported fields
}
func (*MuxServerManager) CheckArgs ¶
func (s *MuxServerManager) CheckArgs() (err error)
func (*MuxServerManager) Clean ¶
func (s *MuxServerManager) Clean()
func (*MuxServerManager) InitService ¶
func (s *MuxServerManager) InitService() (err error)
func (*MuxServerManager) Start ¶
func (s *MuxServerManager) Start(args interface{}, log *logger.Logger) (err error)
func (*MuxServerManager) StopService ¶
func (s *MuxServerManager) StopService()
type MuxUDPConnItem ¶
type MuxUDPConnItem struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.