18 #include "pandabase.h" 19 #include "numeric_types.h" 20 #include "socket_address.h" 32 bool set_any(
int port);
33 bool set_localhost(
int port);
34 bool set_broadcast(
int port);
35 bool set_host(
const string &hostname,
int port);
40 void set_port(
int port);
41 string get_ip_string()
const;
42 PN_uint32 get_ip()
const;
43 PN_uint8 get_ip_component(
int n)
const;
47 void output(ostream &out)
const;
49 size_t get_hash()
const;
50 bool operator == (
const NetAddress &other)
const;
51 bool operator != (
const NetAddress &other)
const;
57 INLINE ostream &operator << (ostream &out,
const NetAddress &addr) {
A simple place to store and munipulate tcp and port address for communication layer.
Represents a network address to which UDP packets may be sent or to which a TCP socket may be bound...