dsfml.network

Socket-based communication, utilities and higher-level network protocols (HTTP, FTP).

Modules

ftp
module dsfml.network.ftp

The $(U Ftp) class is a very simple FTP client that allows you to communicate with an FTP server. The FTP protocol allows you to manipulate a remote file system (list files, upload, download, create, remove, ...).

http
module dsfml.network.http

The Http class is a very simple HTTP client that allows you to communicate with a web server. You can retrieve web pages, send data to an interactive resource, download a remote file, etc. The HTTPS protocol is not supported.

ipaddress
module dsfml.network.ipaddress

$(U IpAddress) is a utility class for manipulating network addresses. It provides a set a implicit constructors and conversion functions to easily build or transform an IP address from/to various representations.

packet
module dsfml.network.packet

Packets provide a safe and easy way to serialize data, in order to send it over the network using sockets (sf::TcpSocket, sf::UdpSocket).

socket
module dsfml.network.socket

This class mainly defines internal stuff to be used by derived classes.

socketselector
module dsfml.network.socketselector

Socket selectors provide a way to wait until some data is available on a set of sockets, instead of just one. This is convenient when you have multiple sockets that may possibly receive data, but you don't know which one will be ready first. In particular, it avoids to use a thread for each socket; with selectors, a single thread can handle all the sockets.

tcplistener
module dsfml.network.tcplistener

A listener socket is a special type of socket that listens to a given port and waits for connections on that port. This is all it can do.

tcpsocket
module dsfml.network.tcpsocket

TCP is a connected protocol, which means that a TCP socket can only communicate with the host it is connected to.

udpsocket
module dsfml.network.udpsocket

A UDP socket is a connectionless socket.

Meta