MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / port

Method port

src/remote/SockAddr.h:226–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224
225
226inline unsigned short SockAddr::port() const
227{
228 switch (family())
229 {
230 case AF_INET:
231 return ntohs(data.inet.sin_port);
232 case AF_INET6:
233 return ntohs(data.inet6.sin6_port);
234 }
235 return 0; // exception?
236}
237
238
239inline void SockAddr::setPort(unsigned short x)

Callers 2

aux_connectFunction · 0.80
aux_requestFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected