22#ifndef OF_HAVE_SOCKETS
23# error No sockets available!
26OF_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;
The base class for all exceptions in ObjFW.
Definition OFException.h:157
An exception indicating that listening on the socket failed.
Definition OFListenOnSocketFailedException.h:35