* Create a network address based on a unresolved host and port * @param hostname the unresolved hostname * @param port the port * @param family the address family */
| 29 | * @param family the address family |
| 30 | */ |
| 31 | NetworkAddress(const char *hostname = "", uint16 port = 0, int family = AF_UNSPEC) |
| 32 | { |
| 33 | memset(&this->address, 0, sizeof(this->address)); |
| 34 | this->address.ss_family = family; |
| 35 | this->SetPort(port); |
| 36 | } |
| 37 | |
| 38 | uint16 GetPort() const; |
| 39 | void SetPort(uint16 port); |