Clementine
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
asio::ip::udp Class Reference

Encapsulates the flags needed for UDP. More...

#include <udp.hpp>

Public Types

typedef basic_endpoint< udpendpoint
 The type of a UDP endpoint.
 
typedef basic_datagram_socket< udpsocket
 The UDP socket type.
 
typedef basic_resolver< udpresolver
 The UDP resolver type.
 

Public Member Functions

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

Static Public Member Functions

static udp v4 () ASIO_NOEXCEPT
 Construct to represent the IPv4 UDP protocol.
 
static udp v6 () ASIO_NOEXCEPT
 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.
 

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.

The documentation for this class was generated from the following file: