20 #import "OFBindSocketFailedException.h" 22 #ifndef OF_HAVE_SOCKETS 23 # error No sockets available! 26 OF_ASSUME_NONNULL_BEGIN
34 OF_SUBCLASSING_RESTRICTED
44 @property OF_NULLABLE_PROPERTY (readonly, nonatomic)
OFString *host;
49 @property (readonly, nonatomic) uint16_t port;
60 + (instancetype)exceptionWithHost: (
OFString *)host
65 + (instancetype)exceptionWithSocket: (
id)socket
66 errNo: (
int)errNo OF_UNAVAILABLE;
77 - (instancetype)initWithHost: (
OFString *)host
80 errNo: (
int)errNo OF_DESIGNATED_INITIALIZER;
82 - (instancetype)initWithSocket: (
id)socket errNo: (
int)errNo OF_UNAVAILABLE;
An exception indicating that binding a socket failed.
Definition: OFBindSocketFailedException.h:36
A class for handling strings.
Definition: OFString.h:142
An exception indicating that binding an IP socket failed.
Definition: OFBindIPSocketFailedException.h:35