Documentation ¶
Index ¶
- Variables
- type Client
- func (c Client) Close()
- func (c Client) LocalPort(serverExportPort int32) (int32, bool)
- func (c *Client) MountBinaryHandler(f OnBinary)
- func (c Client) Over(err error)
- func (c *Client) Ports() map[int32]int32
- func (c *Client) SetPorts(ports map[int32]int32)
- func (c Client) StartReadMessage()
- func (c Client) Write(userConnectId string, bytes []byte) error
- type Forwarder
- type OnBinary
- type OnText
- type UserConnForward
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Fw = &Forwarder{ container: make(map[string]*UserConnForward), } )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) MountBinaryHandler ¶
func (Client) StartReadMessage ¶
func (c Client) StartReadMessage()
type Forwarder ¶
type Forwarder struct {
// contains filtered or unexported fields
}
func (*Forwarder) ToLocal ¶
func (f *Forwarder) ToLocal(message *protocol.BurstMessage)
type UserConnForward ¶
type UserConnForward struct {
// contains filtered or unexported fields
}
func NewUserConn ¶
func NewUserConn(localPort int32, userConnectId string) (*UserConnForward, error)
func (UserConnForward) StartForwardToServer ¶
func (u UserConnForward) StartForwardToServer(client *Client)
Click to show internal directories.
Click to hide internal directories.