View on GitHub

DSFML

dsfml.network.socket

A module contianing the Socket abstract class

abstract class Socket;
Base class for all the socket types.

enum Status: int;
Status codes that may be returned by socket functions.

Done
The socket has sent / received the data

NotReady
The socket is not ready to send / receive data yet

Disconnected
The TCP socket has been disconnected

Error
An unexpected error happened

int AnyPort;
Special value that tells the system to pick any available port.