Documentation ¶
Index ¶
- Constants
- func NewMuxBridge() services.Service
- func NewMuxClient() services.Service
- func NewMuxServer() services.Service
- func NewMuxServerManager() services.Service
- 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()
- 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) UDPConnDeamon()
- type MuxServerArgs
- type MuxServerManager
- type MuxUDPItem
Constants ¶
View Source
const ( CONN_SERVER = uint8(4) CONN_CLIENT = uint8(5) )
Variables ¶
This section is empty.
Functions ¶
func NewMuxBridge ¶
func NewMuxClient ¶
func NewMuxServer ¶
func NewMuxServerManager ¶
Types ¶
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()
type MuxClientArgs ¶
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) UDPConnDeamon ¶
func (s *MuxServer) UDPConnDeamon()
type MuxServerArgs ¶
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 MuxUDPItem ¶
type MuxUDPItem struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.