20#import "OFBindSocketFailedException.h"
22#ifndef OF_HAVE_SOCKETS
23# error No sockets available!
26OF_ASSUME_NONNULL_BEGIN
34OF_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 an IP socket failed.
Definition OFBindIPSocketFailedException.h:36
OFString * host
The host on which binding failed.
Definition OFBindIPSocketFailedException.h:44
An exception indicating that binding a socket failed.
Definition OFBindSocketFailedException.h:37
A class for handling strings.
Definition OFString.h:143