Documentation ¶
Overview ¶
Package p2p (point to point) defines a net.PacketConn implementation where messages are exchanged via channels.
Index ¶
- Constants
- func New() (*Conn, *Conn)
- type Addr
- type Conn
- func (c *Conn) Close() error
- func (c *Conn) LocalAddr() net.Addr
- func (c *Conn) ReadFrom(b []byte) (int, net.Addr, error)
- func (c *Conn) SetDeadline(t time.Time) error
- func (c *Conn) SetReadDeadline(t time.Time) error
- func (c *Conn) SetWriteDeadline(t time.Time) error
- func (c *Conn) WriteTo(b []byte, a net.Addr) (n int, err error)
Constants ¶
View Source
const (
// Number of packets that can fit into Conn buffers until the writer blocks
PktBufferSize = 16
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) SetReadDeadline ¶
SetReadDeadline is a NOP.
func (*Conn) SetWriteDeadline ¶
SetWriteDeadline is a NOP.
Click to show internal directories.
Click to hide internal directories.