| 82 | } |
| 83 | |
| 84 | void EndPoint::reset(void) { |
| 85 | if (ExtendedEndPoint::is_extended(*this)) { |
| 86 | ExtendedEndPoint* eep = ExtendedEndPoint::address(*this); |
| 87 | if (eep) { |
| 88 | eep->dec_ref(); |
| 89 | } |
| 90 | } |
| 91 | ip = IP_ANY; |
| 92 | port = 0; |
| 93 | } |
| 94 | |
| 95 | EndPoint::EndPoint(ip_t ip2, int port2) : ip(ip2), port(port2) { |
| 96 | // Should never construct an extended endpoint by this way |