MCPcopy Create free account
hub / github.com/SIPp/sipp / close_calls

Method close_calls

src/socket.cpp:2294–2308  ·  view source on GitHub ↗

Close just those calls for a given socket (e.g., if the remote end closes * the connection. */

Source from the content-addressed store, hash-verified

2292/* Close just those calls for a given socket (e.g., if the remote end closes
2293 * the connection. */
2294void SIPpSocket::close_calls()
2295{
2296 owner_list *owners = get_owners_for_socket(this);
2297 owner_list::iterator owner_it;
2298 socketowner *owner_ptr = nullptr;
2299
2300 for (owner_it = owners->begin(); owner_it != owners->end(); owner_it++) {
2301 owner_ptr = *owner_it;
2302 if (owner_ptr) {
2303 owner_ptr->tcpClose();
2304 }
2305 }
2306
2307 delete owners;
2308}
2309
2310int open_connections()
2311{

Callers

nothing calls this directly

Calls 2

get_owners_for_socketFunction · 0.85
tcpCloseMethod · 0.80

Tested by

no test coverage detected