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
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
instancetype exception()
Creates a new, autoreleased exception.
Definition OFException.m:283
An exception indicating that listening on the socket failed.
Definition OFListenOnSocketFailedException.h:35
int backlog
The requested back log.
Definition OFListenOnSocketFailedException.h:49
id socket
The socket which failed to listen.
Definition OFListenOnSocketFailedException.h:44
int errNo
The errno of the error that occurred.
Definition OFListenOnSocketFailedException.h:54
instancetype init()
Initializes an already allocated object.
Definition OFObject.m:696