62 static constexpr unsigned short AnyPort{0};
191 bool m_isBlocking{
true};
#define SFML_NETWORK_API
Definition Export.hpp:42
void setBlocking(bool blocking)
Set the blocking state of the socket.
static constexpr unsigned short AnyPort
Some special values used by sockets.
Definition Socket.hpp:62
Socket & operator=(const Socket &)=delete
Deleted copy assignment.
friend class SocketSelector
Definition Socket.hpp:184
Socket(Socket &&socket) noexcept
Move constructor.
Status
Status codes that may be returned by socket functions.
Definition Socket.hpp:49
Type
Types of protocols that the socket can use.
Definition Socket.hpp:129
SocketHandle getNativeHandle() const
Return the internal handle of the socket.
void close()
Close the socket gracefully.
Socket & operator=(Socket &&socket) noexcept
Move assignment.
virtual ~Socket()
Destructor.
Socket(Type type)
Default constructor.
Socket(const Socket &)=delete
Deleted copy constructor.
void create()
Create the internal representation of the socket.
bool isBlocking() const
Tell whether the socket is in blocking or non-blocking mode.
void create(SocketHandle handle)
Create the internal representation of the socket from a socket handle.
Definition BlendMode.hpp:34
int SocketHandle
Definition SocketHandle.hpp:49