Versions in this module Expand all Collapse all v1 v1.9.1 Feb 28, 2016 Changes in this version + type TCPConn struct + 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 struct + func ListenTCP(port v2net.Port, callback func(*TCPConn)) (*TCPHub, error) + func (this *TCPHub) Close() + type UDPHub struct + func ListenUDP(port v2net.Port, callback UDPPayloadHandler) (*UDPHub, error) + func (this *UDPHub) Close() + func (this *UDPHub) WriteTo(payload []byte, dest v2net.Destination) (int, error) + type UDPPayloadHandler func(*alloc.Buffer, v2net.Destination) + type UDPResponseCallback func(packet v2net.Packet) + type UDPServer struct + func NewUDPServer(packetDispatcher dispatcher.PacketDispatcher) *UDPServer + func (this *UDPServer) Dispatch(source v2net.Destination, packet v2net.Packet, callback UDPResponseCallback)