Enum slmp_client::TCPorUDP[][src]

pub enum TCPorUDP {
    UDP(UdpSocketSocketAddr),
    TCP(TcpStream),
}
Expand description

TCPとUDPの差異を吸収

Variants

Implementations

指定されたバイト列を送信する

引数

  • buf - 送信するバイト列

返値

送信したバイト数

受信する

引数

  • buf - 受信したデータを入れるバッファ、十分な量を確保しておくこと

返値

受信したバイト数

読み取りタイムアウトの設定

引数

  • timeout - ミリ秒単位での指定

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.