17 #import "OFException.h"
19 #ifndef OF_HAVE_SOCKETS
20 # error No sockets available!
37 #ifdef OF_HAVE_PROPERTIES
38 @property (readonly, retain)
id socket;
39 @property (readonly, copy)
OFString *host;
40 @property (readonly) uint16_t port;
41 @property (readonly)
int errNo;
52 + (instancetype)exceptionWithHost: (
OFString*)host
65 + (instancetype)exceptionWithHost: (
OFString*)host
An exception indicating that a connection could not be established.
Definition: OFConnectionFailedException.h:29
A class for handling strings.
Definition: OFString.h:91
The base class for all exceptions in ObjFW.
Definition: OFException.h:144