header

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NegotiateSenderProtocol

func NegotiateSenderProtocol(rw io.ReadWriter, protocols []psi.Protocol) (psi.Protocol, error)

NegotiateSenderProtocol takes the sender's slice of protocols which are ordered in terms of desirability. First send the length of the protocols slice to receiver and then send the slice itself. The receiver should respond with the first element that is present in both the sender's and receiver's preferred protocol slices. If there is no intersection between the slices, the receiver will respond with psi.ProtocolUnsupported and the operation will fail.

Types

This section is empty.

Jump to

Keyboard shortcuts

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