Documentation ¶
Index ¶
- Variables
- func DialAddr(remote pan.UDPAddr) (net.Conn, error)
- func DialContextAddr(ctx context.Context, remote pan.UDPAddr) (net.Conn, error)
- func DialContextString(ctx context.Context, remote string) (net.Conn, error)
- func DialQUIC(ctx context.Context, local netaddr.IPPort, remote pan.UDPAddr, ...) (net.Conn, error)
- func DialString(remote string) (net.Conn, error)
- func ListenIPPort(addr netaddr.IPPort) (net.Listener, error)
- func ListenPort(port uint16) (net.Listener, error)
- func ListenQUIC(ctx context.Context, addr netaddr.IPPort, selector pan.ReplySelector, ...) (net.Listener, error)
- func ListenString(addr string) (net.Listener, error)
- type Conn
- func (q *Conn) Close() error
- func (q *Conn) LocalAddr() net.Addr
- func (q *Conn) Read(b []byte) (int, error)
- func (q *Conn) RemoteAddr() net.Addr
- func (q *Conn) SetDeadline(t time.Time) error
- func (q *Conn) SetReadDeadline(t time.Time) error
- func (q *Conn) SetWriteDeadline(t time.Time) error
- func (q *Conn) Write(b []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ServerTLSDummyCfg = &tls.Config{ Certificates: quicutil.MustGenerateSelfSignedCert(), NextProtos: []string{"hello-quic"}, } ClientTLSDummyCfg = &tls.Config{ InsecureSkipVerify: true, NextProtos: []string{"hello-quic"}, } )
Functions ¶
func DialContextAddr ¶
DialContextAddr returns a SCION QUIC connection that implements net.Conn
func DialContextString ¶
DialContextString returns a SCION QUIC connection that implements net.Conn
func DialQUIC ¶
func DialQUIC(ctx context.Context, local netaddr.IPPort, remote pan.UDPAddr, policy pan.Policy, selector pan.Selector, host string, tlsConf *tls.Config, quicConf *quic.Config) (net.Conn, error)
DialQUIC returns a SCION QUIC connection that implements net.Conn
func DialString ¶
DialString returns a SCION QUIC connection that implements net.Conn
func ListenIPPort ¶
ListenIPPort returns a SCION QUIC listener struct that implements net.Listener
func ListenPort ¶
ListenPort returns a SCION QUIC listener struct that implements net.Listener
Types ¶
type Conn ¶
type Conn struct { quic.Session quic.Stream }
Conn implements net.Conn
func (*Conn) RemoteAddr ¶
RemoteAddr required to implement net.Conn
func (*Conn) SetDeadline ¶
SetDeadline required to implement net.Conn
func (*Conn) SetReadDeadline ¶
SetReadDeadline required to implement net.Conn
func (*Conn) SetWriteDeadline ¶
SetWriteDeadline required to implement net.Conn
Click to show internal directories.
Click to hide internal directories.