Documentation ¶
Index ¶
- Variables
- type Connection
- func (this *Connection) Close() error
- func (this *Connection) LocalAddr() net.Addr
- func (this *Connection) Read(b []byte) (int, error)
- func (this *Connection) Release()
- func (this *Connection) RemoteAddr() net.Addr
- func (this *Connection) SetDeadline(t time.Time) error
- func (this *Connection) SetReadDeadline(t time.Time) error
- func (this *Connection) SetWriteDeadline(t time.Time) error
- func (this *Connection) Write(b []byte) (int, error)
- type ConnectionHandler
- type TCPHub
- type UDPHub
- type UDPPayloadHandler
- type UDPResponseCallback
- type UDPServer
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Connection ¶ added in v1.12.1
type Connection struct {
// contains filtered or unexported fields
}
func (*Connection) Close ¶ added in v1.12.1
func (this *Connection) Close() error
func (*Connection) LocalAddr ¶ added in v1.12.1
func (this *Connection) LocalAddr() net.Addr
func (*Connection) Read ¶ added in v1.12.1
func (this *Connection) Read(b []byte) (int, error)
func (*Connection) Release ¶ added in v1.12.4
func (this *Connection) Release()
func (*Connection) RemoteAddr ¶ added in v1.12.1
func (this *Connection) RemoteAddr() net.Addr
func (*Connection) SetDeadline ¶ added in v1.12.1
func (this *Connection) SetDeadline(t time.Time) error
func (*Connection) SetReadDeadline ¶ added in v1.12.1
func (this *Connection) SetReadDeadline(t time.Time) error
func (*Connection) SetWriteDeadline ¶ added in v1.12.1
func (this *Connection) SetWriteDeadline(t time.Time) error
func (*Connection) Write ¶ added in v1.12.1
func (this *Connection) Write(b []byte) (int, error)
type ConnectionHandler ¶ added in v1.12.1
type ConnectionHandler func(*Connection)
type UDPHub ¶
type UDPHub struct {
// contains filtered or unexported fields
}
type UDPPayloadHandler ¶
type UDPPayloadHandler func(*alloc.Buffer, v2net.Destination)
type UDPResponseCallback ¶
type UDPResponseCallback func(destination v2net.Destination, payload *alloc.Buffer)
type UDPServer ¶
func NewUDPServer ¶
func NewUDPServer(packetDispatcher dispatcher.PacketDispatcher) *UDPServer
func (*UDPServer) Dispatch ¶
func (this *UDPServer) Dispatch(source v2net.Destination, destination v2net.Destination, payload *alloc.Buffer, callback UDPResponseCallback)
Click to show internal directories.
Click to hide internal directories.