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

pub struct Tcp {
    // some fields omitted
}

The Transmission Control Protocol.

Methods

impl Tcp
[src]

fn v4() -> Tcp

Represents a TCP for IPv4.

fn v6() -> Tcp

Represents a TCP for IPv6.

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]

type Endpoint = IpEndpoint<Self>

fn family_type(&self) -> i32

Reurns 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.

unsafe fn uninitialized(&self) -> Self::Endpoint

impl IpProtocol for Tcp
[src]

fn is_v4(&self) -> bool

fn is_v6(&self) -> bool