boost.png (6897 bytes)

PrevUpHomeNext

Class address

boost::net::socket::ip4::address — Address class for IP4.

Synopsis

class address {
public:
  // construct/copy/destruct
  address();
  address(const any_address &);
  address(char const *, port_t);

  // public member functions
  family_t family() const;
  port_t port() const;
  void port(port_t) ;
  void ip(char const *) ;
  std::string ip() const;
  std::string to_string() const;
  std::pair< void *, size_t > representation() ;
  std::pair< const void *, size_t > representation() const;
  bool operator<(const address &) const;
  bool operator==(const address &) const;
  bool operator!=(const address &) const;
};

Description

address construct/copy/destruct

  1. address();
  2. address(const any_address & );
  3. address(char const * ip, port_t port);

address public member functions

  1. family_t family() const;
  2. port_t port() const;
  3. void port(port_t port) ;
  4. void ip(char const * ip_string) ;
  5. std::string ip() const;
  6. std::string to_string() const;
  7. std::pair< void *, size_t > representation() ;
  8. std::pair< const void *, size_t > representation() const;
  9. bool operator<(const address & addr) const;
  10. bool operator==(const address & addr) const;
  11. bool operator!=(const address & addr) const;
Copyright © 2004 Hugo Duncan

PrevUpHomeNext