22 #ifndef OF_HAVE_SOCKETS 23 # error No sockets available! 26 OF_ASSUME_NONNULL_BEGIN
44 @property (readonly, nonatomic)
id socket;
49 @property (readonly, nonatomic)
int backlog;
54 @property (readonly, nonatomic)
int errNo;
64 + (instancetype)exceptionWithSocket: (
id)socket
68 + (instancetype)exception OF_UNAVAILABLE;
78 - (instancetype)initWithSocket: (
id)socket
80 errNo: (
int)errNo OF_DESIGNATED_INITIALIZER;
82 - (instancetype)init OF_UNAVAILABLE;
An exception indicating that listening on the socket failed.
Definition: OFListenOnSocketFailedException.h:34
The base class for all exceptions in ObjFW.
Definition: OFException.h:156