16 #include <boost/array.hpp>    32       const std::string& user_id)
    46     unsigned short port = endpoint.
port();
    47     port_high_byte_ = (port >> 8) & 0xff;
    48     port_low_byte_ = port & 0xff;
    72   unsigned char version_;
    73   unsigned char command_;
    74   unsigned char port_high_byte_;
    75   unsigned char port_low_byte_;
    78   unsigned char null_byte_;
    86     request_granted = 0x5a,
    87     request_failed = 0x5b,
    88     request_failed_no_identd = 0x5c,
    89     request_failed_bad_user_id = 0x5d
   115     return null_byte_ == 0 && status_ == request_granted;
   125     unsigned short port = port_high_byte_;
   126     port = (port << 8) & 0xff00;
   127     port = port | port_low_byte_;
   135   unsigned char null_byte_;
   136   unsigned char status_;
   137   unsigned char port_high_byte_;
   138   unsigned char port_low_byte_;
 
Describes an endpoint for a version-independent IP socket. 
 
protocol_type protocol() const 
The protocol associated with the endpoint. 
 
unsigned char status() const 
 
asio::ip::tcp::endpoint endpoint() const 
 
Implements IP version 4 style addresses. 
 
mutable_buffers_1 buffer(const mutable_buffer &b)
Create a new modifiable buffer from an existing buffer. 
 
static tcp v4()
Construct to represent the IPv4 TCP protocol. 
 
const unsigned char version
 
asio::ip::address address() const 
Get the IP address associated with the endpoint. 
 
request(command_type cmd, const asio::ip::tcp::endpoint &endpoint, const std::string &user_id)
 
ASIO_DECL asio::ip::address_v4 to_v4() const 
Get the address as an IP version 4 address. 
 
unsigned short port() const 
 
boost::array< asio::mutable_buffer, 5 > buffers()
 
basic_endpoint< tcp > endpoint
The type of a TCP endpoint. 
 
ASIO_DECL bytes_type to_bytes() const 
Get the address in bytes, in network byte order. 
 
boost::array< asio::const_buffer, 7 > buffers() const 
 
Address family not supported by protocol.