MCPcopy Create free account
hub / github.com/chen3feng/toft / SetLength

Method SetLength

system/net/socket_address.cpp:236–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236bool SocketAddressInet::SetLength(socklen_t length)
237{
238 switch (m_address.common.sa_family)
239 {
240 case AF_INET:
241 return length == sizeof(m_address.v4);
242#ifdef AF_INET6
243 case AF_INET6:
244 return length == sizeof(m_address.v6);
245#endif
246 default:
247 assert(false);
248 }
249 return false;
250}
251
252SocketAddressInet& SocketAddressInet::operator=(const SocketAddress& src)
253{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected