MCPcopy Create free account
hub / github.com/apache/brpc / reset

Method reset

src/butil/endpoint.cpp:84–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84void 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
95EndPoint::EndPoint(ip_t ip2, int port2) : ip(ip2), port(port2) {
96 // Should never construct an extended endpoint by this way

Callers 1

hostname2ipFunction · 0.45

Calls 1

dec_refMethod · 0.45

Tested by

no test coverage detected