Documentation ¶
Index ¶
- func WrapQuicConnection(s quic.Stream, q quic.Connection) net.Conn
- type ALPNMux
- type QUIC
- func (t *QUIC) AcceptStream() <-chan *transport.StreamDelegate
- func (t *QUIC) AcceptWithListener(ctx context.Context, listener q.EarlyListener) error
- func (t *QUIC) DialStream(ctx context.Context, peer *protocol.Node, kind protocol.Stream_Type) (net.Conn, error)
- func (t *QUIC) Identity() *protocol.Node
- func (t *QUIC) ListConnected() []transport.ConnectedPeer
- func (t *QUIC) ReceiveDatagram() <-chan *transport.DatagramDelegate
- func (t *QUIC) SendDatagram(peer *protocol.Node, buf []byte) error
- func (t *QUIC) Stop()
- func (t *QUIC) SupportDatagram() bool
- func (t *QUIC) WithClientCertificate(cert tls.Certificate) error
- type TransportConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WrapQuicConnection ¶
Types ¶
type QUIC ¶
type QUIC struct { TransportConfig // contains filtered or unexported fields }
func NewQUIC ¶
func NewQUIC(conf TransportConfig) *QUIC
func (*QUIC) AcceptStream ¶
func (t *QUIC) AcceptStream() <-chan *transport.StreamDelegate
func (*QUIC) AcceptWithListener ¶
func (*QUIC) DialStream ¶
func (*QUIC) ListConnected ¶
func (t *QUIC) ListConnected() []transport.ConnectedPeer
func (*QUIC) ReceiveDatagram ¶
func (t *QUIC) ReceiveDatagram() <-chan *transport.DatagramDelegate
func (*QUIC) SupportDatagram ¶
func (*QUIC) WithClientCertificate ¶
func (t *QUIC) WithClientCertificate(cert tls.Certificate) error
Click to show internal directories.
Click to hide internal directories.