22#ifndef OF_HAVE_SOCKETS
23# error No sockets available!
28OF_ASSUME_NONNULL_BEGIN
46@property (readonly, nonatomic)
id socket;
51@property (readonly, nonatomic)
int errNo;
60+ (instancetype)exceptionWithSocket: (
id)socket errNo: (
int)errNo;
71- (instancetype)initWithSocket: (
id)socket
72 errNo: (
int)errNo OF_DESIGNATED_INITIALIZER;
74- (instancetype)
init OF_UNAVAILABLE;
An exception indicating that a connection could not be established.
Definition OFConnectSocketFailedException.h:37
int errNo
The errno of the error that occurred.
Definition OFConnectSocketFailedException.h:51
id socket
The socket which could not connect.
Definition OFConnectSocketFailedException.h:46
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