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