16 #import "OFException.h"
18 #ifndef OF_HAVE_SOCKETS
19 # error No sockets available!
22 OF_ASSUME_NONNULL_BEGIN
39 @property (readonly, nonatomic)
id socket;
44 @property (readonly, nonatomic)
int backlog;
49 @property (readonly, nonatomic)
int errNo;
51 + (instancetype)exception OF_UNAVAILABLE;
61 + (instancetype)exceptionWithSocket: (
id)socket
65 - (instancetype)init OF_UNAVAILABLE;
75 - (instancetype)initWithSocket: (
id)socket
77 errNo: (
int)errNo OF_DESIGNATED_INITIALIZER;
The base class for all exceptions in ObjFW.
Definition: OFException.h:147
An exception indicating that listening on the socket failed.
Definition: OFListenFailedException.h:31