p2p

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

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

func NewConns() (net.Conn, net.Conn)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL