17 #import "OFException.h" 19 #ifndef OF_HAVE_SOCKETS 20 # error No sockets available! 23 OF_ASSUME_NONNULL_BEGIN
47 @property (readonly, nonatomic) uint16_t
port;
52 @property (readonly, nonatomic)
id socket;
57 @property (readonly, nonatomic)
int errNo;
70 + (instancetype)exceptionWithHost: (
OFString *)host
75 -
init OF_UNAVAILABLE;
89 errNo: (
int)errNo OF_DESIGNATED_INITIALIZER;
uint16_t port
Definition: OFBindFailedException.h:47
A class for handling strings.
Definition: OFString.h:114
int errNo
Definition: OFBindFailedException.h:57
An exception indicating that binding a socket failed.
Definition: OFBindFailedException.h:31
id init()
Initializes an already allocated object.
Definition: OFObject.m:488
The base class for all exceptions in ObjFW.
Definition: OFException.h:143
OFString * host
Definition: OFBindFailedException.h:42
instancetype exception()
Creates a new, autoreleased exception.
Definition: OFException.m:250
id socket
Definition: OFBindFailedException.h:52