asio 0.3.8rc3 | Home | Reference | Tutorial | Examples | Design

Reference | Class Hierarchy | Class Index | Member Index

# asio::ip::udp Class Reference

List of all members.

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

## Public Types

typedef basic_endpoint< udp > | endpoint
| The type of a UDP endpoint.
typedef basic_resolver_query< udp > | resolver_query
| The type of a resolver query.
typedef basic_resolver_iterator< udp > | resolver_iterator
| The type of a resolver iterator.
typedef basic_datagram_socket< udp > | socket
| The UDP socket type.
typedef basic_resolver< udp > | resolver
| The UDP resolver type.

## Public Member Functions

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

## Static Public Member Functions

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

## Friends

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

## Member Typedef Documentation

typedef basic_endpoint<udp> asio::ip::udp::endpoint

The type of a UDP endpoint.

typedef basic_resolver_query<udp> asio::ip::udp::resolver_query

The type of a resolver query.

typedef basic_resolver_iterator<udp> asio::ip::udp::resolver_iterator

The type of a resolver iterator.

typedef basic_datagram_socket<udp> asio::ip::udp::socket

The UDP socket type.

typedef basic_resolver<udp> asio::ip::udp::resolver

The UDP resolver type.

## Member Function Documentation

static udp asio::ip::udp::v4 | ( |  | ) | `[static]`

Construct to represent the IPv4 UDP protocol.

static udp asio::ip::udp::v6 | ( |  | ) | `[static]`

Construct to represent the IPv6 UDP protocol.

int asio::ip::udp::type | ( |  | ) | const

Obtain an identifier for the type of the protocol.

int asio::ip::udp::protocol | ( |  | ) | const

Obtain an identifier for the protocol.

int asio::ip::udp::family | ( |  | ) | const

Obtain an identifier for the protocol family.

## Friends And Related Function Documentation

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

Compare two protocols for equality.

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

Compare two protocols for inequality.

asio 0.3.8rc3 | Home | Reference | Tutorial | Examples | Design