Struct asio::ip::Tcp [] [src]

pub struct Tcp {
    // some fields omitted
}

Encapsulates the flags needed for TCP.

Methods

impl Tcp
[src]

fn v4() -> Tcp

Make the TCP for IPv4.

Example

use asio::ip::Tcp;
let pro = Tcp::v4();

fn v6() -> Tcp

Make the TCP for IPv6.

Example

use asio::ip::Tcp;
let pro = Tcp::v6();

Trait Implementations

impl Debug for Tcp
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl PartialEq for Tcp
[src]

fn eq(&self, __arg_0: &Tcp) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Tcp) -> bool

This method tests for !=.

impl Eq for Tcp
[src]

impl Clone for Tcp
[src]

fn clone(&self) -> Tcp

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Protocol for Tcp
[src]

fn family_type(&self) -> i32

Returns a value suitable for passing as the domain argument.

fn socket_type(&self) -> i32

Returns a value suitable for passing as the type argument.

fn protocol_type(&self) -> i32

Returns a value suitable for passing as the protocol argument.