20#import "OFException.h"
22#ifndef OF_HAVE_SOCKETS
23# error No sockets available!
26OF_ASSUME_NONNULL_BEGIN
45@property (readonly, nonatomic)
id socket;
50@property (readonly, nonatomic)
int backlog;
55@property (readonly, nonatomic)
int errNo;
65+ (instancetype)exceptionWithSocket: (
id)socket
69+ (instancetype)exception OF_UNAVAILABLE;
79- (instancetype)initWithSocket: (
id)socket
81 errNo: (
int)errNo OF_DESIGNATED_INITIALIZER;
83- (instancetype)init OF_UNAVAILABLE;
The base class for all exceptions in ObjFW.
Definition OFException.h:155
An exception indicating that listening on the socket failed.
Definition OFListenOnSocketFailedException.h:36