Documentation ¶
Index ¶
- Variables
- type Config
- type Conn
- func (c *Conn) Close() error
- func (c *Conn) Read(b []byte) (int, error)
- func (c *Conn) ReadMsg(b []byte) (int, error)
- func (c *Conn) ReadMsgFrom(r io.Reader, max int) (int, error)
- func (c *Conn) SetMsgReceiveWindow(n int)
- func (c *Conn) Write(b []byte) (int, error)
- func (c *Conn) WriteMsg(b []byte) (int, error)
- type Mux
- type PrivateKey
- type PublicKey
Constants ¶
This section is empty.
Variables ¶
var ErrAgain = errors.New("try again")
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // StreamReceiveWindow specifies size of the receive window to use for // receiving the reliable stream data. StreamReceiveWindow must be // non-zero. StreamReceiveWindow int // MaxStreamBytesInFlight bounds how many bytes carrying reliable stream // data can be in flight. MaxStreamBytesInFlight int // PrivateKey contains the static private key. The public counterpart is // presented to the remote party during the handshake. The remote party // may discriminate and deny peers based on their public keys. PrivateKey PrivateKey // Listen for incoming connections. Listen bool }
Config is used to configure a Mux. A config must not be modified once while in use. A Config may be in use by multiple Muxes simultaneously.
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) Read ¶
If c is closed, Read will read remaining stream contents before reporting an error.
func (*Conn) SetMsgReceiveWindow ¶
SetMsgReceiveWindow sets the receive window size of the message ReadWriter. SetMsgReceiveWindow must not be called while the message ReadWriter is being read or written to.
type Mux ¶
type Mux struct {
// contains filtered or unexported fields
}
func (*Mux) Close ¶
Close shutdowns the Mux and its connections. Close does not close the connections gracefully -- peers might not observe a CLOSE frame. If graceful shutdown is desired, close each connection before closing the Mux.
func (*Mux) DialContextAddrPort ¶
func (m *Mux) DialContextAddrPort(ctx context.Context, remoteStaticPublicKey PublicKey, raddr netip.AddrPort) (*Conn, error)
DialContextAddrPort dials raddr. Note that when DialContextAddrPort returns, peer might not have completed the handshake.
See github.com/nanokatze/quic-at-home/transportutil.Dial for a more convenient interface.
func (*Mux) LocalAddrPort ¶
type PrivateKey ¶
type PrivateKey []byte
func (PrivateKey) Public ¶
func (privKey PrivateKey) Public() PublicKey
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
internal
|
|
sec
sec is an implementation of Noise_IK_25519_ChaChaPoly_BLAKE2b protocol.
|
sec is an implementation of Noise_IK_25519_ChaChaPoly_BLAKE2b protocol. |
udp
https://www.kernel.org/doc/html/latest/networking/segmentation-offloads.html
|
https://www.kernel.org/doc/html/latest/networking/segmentation-offloads.html |