Documentation ¶
Overview ¶
Package p2p (point to point) provides a net.PacketConn wrapper around net.Pipe().
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConns ¶ added in v0.4.0
NewConns creates two paired network connections by calling net.Pipe. For more information on how the connections behave, see net.Pipe.
func NewPacketConns ¶ added in v0.4.0
func NewPacketConns() (net.PacketConn, net.PacketConn)
NewPacketConns creates two net.PacketConn implementations by wrapping over net.Conn's created via net.Pipe(). Addresses in WriteTo calls are ignored, and addresses returned by ReadFrom are always nil.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.