| 224 | |
| 225 | |
| 226 | inline 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 | |
| 239 | inline void SockAddr::setPort(unsigned short x) |
no outgoing calls
no test coverage detected