25 #ifndef CPP3DS_SOCKET_HPP
26 #define CPP3DS_SOCKET_HPP
31 #include <cpp3ds/Network/SocketHandle.hpp>
32 #include <cpp3ds/System/NonCopyable.hpp>
158 void create(SocketHandle handle);
176 SocketHandle m_socket;
183 #endif // CPP3DS_SOCKET_HPP
void close()
Close the socket gracefully.
Socket(Type type)
Default constructor.
The socket sent a part of the data.
Base class for all the socket types.
The socket is not ready to send / receive data yet.
void setBlocking(bool blocking)
Set the blocking state of the socket.
bool isBlocking() const
Tell whether the socket is in blocking or non-blocking mode.
The TCP socket has been disconnected.
SocketHandle getHandle() const
Return the internal handle of the socket.
Utility class that makes any derived class non-copyable.
virtual ~Socket()
Destructor.
Special value that tells the system to pick any available port.
The socket has sent / received the data.
An unexpected error happened.
Status
Status codes that may be returned by socket functions.
Multiplexer that allows to read from multiple sockets.
Type
Types of protocols that the socket can use.
void create()
Create the internal representation of the socket.