We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 759c41a commit db437e1Copy full SHA for db437e1
src/simple_socket/util/net_byteorder.cpp
@@ -3,6 +3,7 @@
3
#include <WinSock2.h>
4
#else
5
#include <arpa/inet.h>
6
+#include <netinet/in.h>
7
#endif
8
9
#include "simple_socket/util/net_byteorder.hpp"
@@ -15,8 +16,8 @@ uint16_t simple_socket::ss_ntohs(uint16_t netshort) {
15
16
return ::ntohs(netshort);
17
}
18
-uint32_t simple_socket::ss_htonl(uint32_t netlong) {
19
- return ::htonl(netlong);
+uint32_t simple_socket::ss_htonl(uint32_t hostlong) {
20
+ return ::htonl(hostlong);
21
22
23
uint32_t simple_socket::ss_ntohl(uint32_t netlong) {
0 commit comments