17 #import "OFException.h" 19 #ifndef OF_HAVE_SOCKETS 20 # error No sockets available! 23 OF_ASSUME_NONNULL_BEGIN
40 @property (readonly, nonatomic)
id socket;
45 @property (readonly, nonatomic)
int backLog;
50 @property (readonly, nonatomic)
int errNo;
62 + (instancetype)exceptionWithSocket: (
id)socket
66 -
init OF_UNAVAILABLE;
76 - initWithSocket: (
id)socket
78 errNo: (
int)errNo OF_DESIGNATED_INITIALIZER;
int errNo
Definition: OFListenFailedException.h:50
id init()
Initializes an already allocated object.
Definition: OFObject.m:488
The base class for all exceptions in ObjFW.
Definition: OFException.h:143
id socket
Definition: OFListenFailedException.h:40
instancetype exception()
Creates a new, autoreleased exception.
Definition: OFException.m:250
int backLog
Definition: OFListenFailedException.h:45
An exception indicating that listening on the socket failed.
Definition: OFListenFailedException.h:31