16 #import "OFException.h"
18 #ifndef OF_HAVE_SOCKETS
19 # error No sockets available!
24 OF_ASSUME_NONNULL_BEGIN
37 unsigned char _node[IPX_NODE_LEN];
45 @property (readonly, nonatomic)
id socket;
50 @property OF_NULLABLE_PROPERTY (readonly, nonatomic)
OFString *
host;
55 @property (readonly, nonatomic) uint16_t port;
60 @property (readonly, nonatomic)
unsigned char *node;
65 @property (readonly, nonatomic) uint32_t network;
70 @property (readonly, nonatomic)
int errNo;
72 + (instancetype)exception OF_UNAVAILABLE;
83 + (instancetype)exceptionWithHost: (nullable
OFString *)host
98 + (instancetype)exceptionWithNode: (
unsigned char [_Nullable IPX_NODE_LEN])node
99 network: (uint32_t)network
104 - (instancetype)init OF_UNAVAILABLE;
115 - (instancetype)initWithHost: (nullable
OFString *)host
130 - (instancetype)initWithNode: (
unsigned char [_Nullable IPX_NODE_LEN])node
131 network: (uint32_t)network
137 OF_ASSUME_NONNULL_END
An exception indicating that a connection could not be established.
Definition: OFConnectionFailedException.h:33
OFString * host
The host to which the connection failed.
Definition: OFConnectionFailedException.h:50
The base class for all exceptions in ObjFW.
Definition: OFException.h:147
A class for handling strings.
Definition: OFString.h:132