Struct tokio_utp::UtpSocket [] [src]

pub struct UtpSocket { /* fields omitted */ }

A uTP socket. Can be used to make outgoing connections.

Methods

impl UtpSocket
[src]

[src]

Bind a new UtpSocket to the given socket address

[src]

Gets the local address that the socket is bound to.

[src]

Create a new Utpsocket backed by the provided UdpSocket.

[src]

Connect a new UtpSocket to the given remote socket address

[src]

Consume the socket and the convert it to a future which resolves once all connections have been closed gracefully.

[src]

Set the filter which filters out bogus UDP packets. Can be used to filter (eg.) STUN packets that are expected to arrive on the port. Returns the previously-set filter (if any).

Trait Implementations

impl Debug for UtpSocket
[src]

[src]

Formats the value using the given formatter.