All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends
asio::ip::udp Class Reference

Encapsulates the flags needed for UDP. More...

#include <udp.hpp>

List of all members.

Public Types

typedef basic_endpoint< udpendpoint
 The type of a UDP endpoint.
typedef basic_resolver< udpresolver
 The UDP resolver type.
typedef
basic_resolver_iterator< udp
resolver_iterator
 The type of a resolver iterator.
typedef basic_resolver_query< udpresolver_query
 The type of a resolver query.
typedef basic_datagram_socket
< udp
socket
 The UDP socket type.

Public Member Functions

int family () const
 Obtain an identifier for the protocol family.
int protocol () const
 Obtain an identifier for the protocol.
int type () const
 Obtain an identifier for the type of the protocol.

Static Public Member Functions

static udp v4 ()
 Construct to represent the IPv4 UDP protocol.
static udp v6 ()
 Construct to represent the IPv6 UDP protocol.

Private Member Functions

 udp (int family)

Private Attributes

int family_

Friends

bool operator!= (const udp &p1, const udp &p2)
 Compare two protocols for inequality.
bool operator== (const udp &p1, const udp &p2)
 Compare two protocols for equality.

Detailed Description

Encapsulates the flags needed for UDP.

The asio::ip::udp class contains flags necessary for UDP sockets.

Thread Safety
Distinct objects: Safe.
Shared objects: Safe.
Concepts:
Protocol, InternetProtocol.

Definition at line 41 of file udp.hpp.


Member Typedef Documentation

The type of a UDP endpoint.

Definition at line 45 of file udp.hpp.

The UDP resolver type.

Definition at line 87 of file udp.hpp.

The type of a resolver iterator.

Definition at line 51 of file udp.hpp.

The type of a resolver query.

Definition at line 48 of file udp.hpp.

The UDP socket type.

Definition at line 84 of file udp.hpp.


Constructor & Destructor Documentation

asio::ip::udp::udp ( int  family) [inline, explicit, private]

Definition at line 103 of file udp.hpp.


Member Function Documentation

int asio::ip::udp::family ( ) const [inline]

Obtain an identifier for the protocol family.

Definition at line 78 of file udp.hpp.

int asio::ip::udp::protocol ( ) const [inline]

Obtain an identifier for the protocol.

Definition at line 72 of file udp.hpp.

int asio::ip::udp::type ( ) const [inline]

Obtain an identifier for the type of the protocol.

Definition at line 66 of file udp.hpp.

static udp asio::ip::udp::v4 ( ) [inline, static]

Construct to represent the IPv4 UDP protocol.

Definition at line 54 of file udp.hpp.

static udp asio::ip::udp::v6 ( ) [inline, static]

Construct to represent the IPv6 UDP protocol.

Definition at line 60 of file udp.hpp.


Friends And Related Function Documentation

bool operator!= ( const udp p1,
const udp p2 
) [friend]

Compare two protocols for inequality.

Definition at line 96 of file udp.hpp.

bool operator== ( const udp p1,
const udp p2 
) [friend]

Compare two protocols for equality.

Definition at line 90 of file udp.hpp.


Member Data Documentation

int asio::ip::udp::family_ [private]

Definition at line 108 of file udp.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


Castor
Author(s): Carpe Noctem
autogenerated on Fri Nov 8 2013 11:05:41