Documentation ¶
Index ¶
- Variables
- type TCPConn
- func (this *TCPConn) Close() error
- func (this *TCPConn) CloseRead() error
- func (this *TCPConn) CloseWrite() error
- func (this *TCPConn) LocalAddr() net.Addr
- func (this *TCPConn) Read(b []byte) (int, error)
- func (this *TCPConn) Release()
- func (this *TCPConn) RemoteAddr() net.Addr
- func (this *TCPConn) SetDeadline(t time.Time) error
- func (this *TCPConn) SetReadDeadline(t time.Time) error
- func (this *TCPConn) SetWriteDeadline(t time.Time) error
- func (this *TCPConn) Write(b []byte) (int, error)
- type TCPHub
- 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 TCPConn ¶
type TCPConn struct {
// contains filtered or unexported fields
}
func (*TCPConn) CloseWrite ¶
func (*TCPConn) RemoteAddr ¶
type UDPPayloadHandler ¶
type UDPPayloadHandler func(*alloc.Buffer, v2net.Destination)
type UDPResponseCallback ¶
type UDPServer ¶
func NewUDPServer ¶
func NewUDPServer(packetDispatcher dispatcher.PacketDispatcher) *UDPServer
func (*UDPServer) Dispatch ¶
func (this *UDPServer) Dispatch(source v2net.Destination, packet v2net.Packet, callback UDPResponseCallback)
Click to show internal directories.
Click to hide internal directories.