///////////////////////////////////////////////////////
| 40 | { |
| 41 | //////////////////////////////////////////////////////////// |
| 42 | sockaddr_in SocketImpl::createAddress(std::uint32_t address, unsigned short port) |
| 43 | { |
| 44 | auto addr = sockaddr_in(); |
| 45 | addr.sin_addr.s_addr = htonl(address); |
| 46 | addr.sin_family = AF_INET; |
| 47 | addr.sin_port = htons(port); |
| 48 | |
| 49 | #if defined(SFML_SYSTEM_MACOS) |
| 50 | addr.sin_len = sizeof(addr); |
| 51 | #endif |
| 52 | |
| 53 | return addr; |
| 54 | } |
| 55 | |
| 56 | |
| 57 | //////////////////////////////////////////////////////////// |
nothing calls this directly
no outgoing calls
no test coverage detected