Module dlib.network.socket

Platform-independent socket API

Functions

NameDescription
wouldHaveBlocked() Checks if the last error is a serious error or just a special behaviour error of non-blocking sockets (for example an error returned because the socket would block or because the asynchronous operation was successfully started but not finished yet).

Interfaces

NameDescription
ConnectionOrientedSocket Interface with common fileds for stream and connected sockets.

Classes

NameDescription
Address Socket address representation.
ConnectedSocket Socket returned if a connection has been established.
OverlappedConnectedSocket Socket returned if a connection has been established.
Socket Class for creating a network communication endpoint using the Berkeley sockets interfaces of different types.
SocketException SocketException should be thrown only if one of the socket functions returns -1 or SOCKET_ERROR and sets errno, because SocketException relies on the errno value.

Enums

NameDescription
SocketError Error codes for Socket.

Manifest constants

NameTypeDescription
IOC_IN Copy parameters into.
IOC_INOUT Copy parameter into and get back.
IOC_OUT Copy parameters back.
IOC_VOID No parameters.