16 #import "OFBindSocketFailedException.h" 18 #ifndef OF_HAVE_SOCKETS 19 # error No sockets available! 22 OF_ASSUME_NONNULL_BEGIN
30 OF_SUBCLASSING_RESTRICTED
40 @property OF_NULLABLE_PROPERTY (readonly, nonatomic)
OFString *
host;
45 @property (readonly, nonatomic) uint16_t port;
56 + (instancetype)exceptionWithHost: (
OFString *)host
61 + (instancetype)exceptionWithSocket: (
id)socket
62 errNo: (
int)errNo OF_UNAVAILABLE;
73 - (instancetype)initWithHost: (
OFString *)host
76 errNo: (
int)errNo OF_DESIGNATED_INITIALIZER;
78 - (instancetype)initWithSocket: (
id)socket errNo: (
int)errNo OF_UNAVAILABLE;
An exception indicating that binding a socket failed.
Definition: OFBindSocketFailedException.h:32
OFString * host
The host on which binding failed.
Definition: OFBindIPSocketFailedException.h:40
A class for handling strings.
Definition: OFString.h:134
An exception indicating that binding an IP socket failed.
Definition: OFBindIPSocketFailedException.h:31