30 bool set_any(
int port);
31 bool set_localhost(
int port);
32 bool set_broadcast(
int port);
33 bool set_host(
const std::string &hostname,
int port);
38 void set_port(
int port);
39 std::string get_ip_string()
const;
41 uint32_t get_ip()
const;
42 uint8_t get_ip_component(
int n)
const;
46 void output(std::ostream &out)
const;
48 size_t get_hash()
const;
49 bool operator == (
const NetAddress &other)
const;
50 bool operator != (
const NetAddress &other)
const;
56INLINE std::ostream &operator << (std::ostream &out,
const NetAddress &addr) {
Represents a network address to which UDP packets may be sent or to which a TCP socket may be bound.
A simple place to store and manipulate tcp and port address for communication layer.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.