25 #ifndef CPP3DS_SOCKETIMPL_HPP
26 #define CPP3DS_SOCKETIMPL_HPP
31 #include <cpp3ds/Network/Socket.hpp>
32 #include <sys/types.h>
33 #include <sys/socket.h>
34 #include <netinet/in.h>
35 #include <netinet/tcp.h>
36 #include <arpa/inet.h>
57 typedef socklen_t AddrLength;
68 static sockaddr_in createAddress(Uint32 address,
unsigned short port);
76 static SocketHandle invalidSocket();
84 static void close(SocketHandle sock);
93 static void setBlocking(SocketHandle sock,
bool block);
109 #endif // CPP3DS_SOCKETIMPL_HPP
Status
Status codes that may be returned by socket functions.