Documentation ¶
Index ¶
- type UtpTransport
- func (t *UtpTransport) CanDial(addr ma.Multiaddr) bool
- func (t *UtpTransport) Dial(ctx context.Context, raddr ma.Multiaddr, p peer.ID) (tpt.CapableConn, error)
- func (t *UtpTransport) Listen(laddr ma.Multiaddr) (tpt.Listener, error)
- func (t *UtpTransport) Protocols() []int
- func (t *UtpTransport) Proxy() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UtpTransport ¶
type UtpTransport struct { // The upgrader upgrade connections from raw utp to full saffed multiplexed ones. // I'm not sure if the default encryption and multiplexer are capable to deal well with utp, need test. Upgrader *tptu.Upgrader // contains filtered or unexported fields }
func NewUtpTransport ¶
func NewUtpTransport(u *tptu.Upgrader) *UtpTransport
func (*UtpTransport) Dial ¶
func (t *UtpTransport) Dial(ctx context.Context, raddr ma.Multiaddr, p peer.ID) (tpt.CapableConn, error)
func (*UtpTransport) Protocols ¶
func (t *UtpTransport) Protocols() []int
func (*UtpTransport) Proxy ¶
func (t *UtpTransport) Proxy() bool
Click to show internal directories.
Click to hide internal directories.