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 errNo;
60+ (instancetype)exceptionWithSocket: (
id)socket errNo: (
int)errNo;
62- (instancetype)
init OF_UNAVAILABLE;
71- (instancetype)initWithSocket: (
id)socket
72 errNo: (
int)errNo OF_DESIGNATED_INITIALIZER;
An exception indicating that accepting a connection failed.
Definition OFAcceptSocketFailedException.h:35
int errNo
The errno from when the exception was created.
Definition OFAcceptSocketFailedException.h:49
id socket
The socket which could not accept a connection.
Definition OFAcceptSocketFailedException.h:44
The base class for all exceptions in ObjFW.
Definition OFException.h:157
instancetype exception()
Creates a new, autoreleased exception.
Definition OFException.m:283
instancetype init()
Initializes an already allocated object.
Definition OFObject.m:696