Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { PortValue uint16 InboundConfigValue *ConnectionConfig OutboundConfigValue *ConnectionConfig }
func (*Config) InboundConfig ¶
func (config *Config) InboundConfig() core.ConnectionConfig
func (*Config) OutboundConfig ¶
func (config *Config) OutboundConfig() core.ConnectionConfig
type ConnectionConfig ¶
func (*ConnectionConfig) Content ¶
func (config *ConnectionConfig) Content() []byte
func (*ConnectionConfig) Protocol ¶
func (config *ConnectionConfig) Protocol() string
type InboundConnectionHandler ¶
type InboundConnectionHandler struct { Data2Send []byte DataReturned *bytes.Buffer Port uint16 Server *core.Point }
func (*InboundConnectionHandler) Communicate ¶
func (handler *InboundConnectionHandler) Communicate(packet v2net.Packet) error
func (*InboundConnectionHandler) Create ¶
func (handler *InboundConnectionHandler) Create(point *core.Point, config []byte) (core.InboundConnectionHandler, error)
func (*InboundConnectionHandler) Listen ¶
func (handler *InboundConnectionHandler) Listen(port uint16) error
type MockUserSet ¶
type OutboundConnectionHandler ¶
type OutboundConnectionHandler struct { Data2Send *bytes.Buffer Data2Return []byte Destination v2net.Destination }
func (*OutboundConnectionHandler) Create ¶
func (handler *OutboundConnectionHandler) Create(point *core.Point, packet v2net.Packet) (core.OutboundConnectionHandler, error)
func (*OutboundConnectionHandler) Initialize ¶
func (handler *OutboundConnectionHandler) Initialize(config []byte) error
func (*OutboundConnectionHandler) Start ¶
func (handler *OutboundConnectionHandler) Start(ray core.OutboundRay) error
Click to show internal directories.
Click to hide internal directories.