Documentation ¶
Index ¶
- Variables
- type Connection
- type ConnectionHandler
- type TCPConnection
- func (this *TCPConnection) Close() error
- func (this *TCPConnection) CloseRead() error
- func (this *TCPConnection) CloseWrite() error
- func (this *TCPConnection) LocalAddr() net.Addr
- func (this *TCPConnection) Read(b []byte) (int, error)
- func (this *TCPConnection) Release()
- func (this *TCPConnection) RemoteAddr() net.Addr
- func (this *TCPConnection) SetDeadline(t time.Time) error
- func (this *TCPConnection) SetReadDeadline(t time.Time) error
- func (this *TCPConnection) SetWriteDeadline(t time.Time) error
- func (this *TCPConnection) Write(b []byte) (int, error)
- type TCPHub
- type TLSConnection
- func (this *TLSConnection) Close() error
- func (this *TLSConnection) CloseRead() error
- func (this *TLSConnection) CloseWrite() error
- func (this *TLSConnection) LocalAddr() net.Addr
- func (this *TLSConnection) Read(b []byte) (int, error)
- func (this *TLSConnection) Release()
- func (this *TLSConnection) RemoteAddr() net.Addr
- func (this *TLSConnection) SetDeadline(t time.Time) error
- func (this *TLSConnection) SetReadDeadline(t time.Time) error
- func (this *TLSConnection) SetWriteDeadline(t time.Time) error
- func (this *TLSConnection) Write(b []byte) (int, error)
- type UDPHub
- type UDPPayloadHandler
- type UDPResponseCallback
- type UDPServer
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrorClosedConnection = errors.New("Connection already closed.")
)
Functions ¶
This section is empty.
Types ¶
type Connection ¶ added in v1.12.1
type ConnectionHandler ¶ added in v1.12.1
type ConnectionHandler func(Connection)
type TCPConnection ¶ added in v1.12.1
type TCPConnection struct {
// contains filtered or unexported fields
}
func (*TCPConnection) Close ¶ added in v1.12.1
func (this *TCPConnection) Close() error
func (*TCPConnection) CloseRead ¶ added in v1.12.1
func (this *TCPConnection) CloseRead() error
func (*TCPConnection) CloseWrite ¶ added in v1.12.1
func (this *TCPConnection) CloseWrite() error
func (*TCPConnection) LocalAddr ¶ added in v1.12.1
func (this *TCPConnection) LocalAddr() net.Addr
func (*TCPConnection) Read ¶ added in v1.12.1
func (this *TCPConnection) Read(b []byte) (int, error)
func (*TCPConnection) Release ¶ added in v1.12.1
func (this *TCPConnection) Release()
func (*TCPConnection) RemoteAddr ¶ added in v1.12.1
func (this *TCPConnection) RemoteAddr() net.Addr
func (*TCPConnection) SetDeadline ¶ added in v1.12.1
func (this *TCPConnection) SetDeadline(t time.Time) error
func (*TCPConnection) SetReadDeadline ¶ added in v1.12.1
func (this *TCPConnection) SetReadDeadline(t time.Time) error
func (*TCPConnection) SetWriteDeadline ¶ added in v1.12.1
func (this *TCPConnection) SetWriteDeadline(t time.Time) error
type TLSConnection ¶ added in v1.12.1
type TLSConnection struct {
// contains filtered or unexported fields
}
func (*TLSConnection) Close ¶ added in v1.12.1
func (this *TLSConnection) Close() error
func (*TLSConnection) CloseRead ¶ added in v1.12.1
func (this *TLSConnection) CloseRead() error
func (*TLSConnection) CloseWrite ¶ added in v1.12.1
func (this *TLSConnection) CloseWrite() error
func (*TLSConnection) LocalAddr ¶ added in v1.12.1
func (this *TLSConnection) LocalAddr() net.Addr
func (*TLSConnection) Read ¶ added in v1.12.1
func (this *TLSConnection) Read(b []byte) (int, error)
func (*TLSConnection) Release ¶ added in v1.12.1
func (this *TLSConnection) Release()
func (*TLSConnection) RemoteAddr ¶ added in v1.12.1
func (this *TLSConnection) RemoteAddr() net.Addr
func (*TLSConnection) SetDeadline ¶ added in v1.12.1
func (this *TLSConnection) SetDeadline(t time.Time) error
func (*TLSConnection) SetReadDeadline ¶ added in v1.12.1
func (this *TLSConnection) SetReadDeadline(t time.Time) error
func (*TLSConnection) SetWriteDeadline ¶ added in v1.12.1
func (this *TLSConnection) SetWriteDeadline(t time.Time) error
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.