17 #import "OFException.h"
19 #ifndef OF_HAVE_SOCKETS
20 # error No sockets available!
37 #ifdef OF_HAVE_PROPERTIES
38 @property (readonly, copy)
OFString *host;
39 @property (readonly) uint16_t port;
40 @property (readonly, retain)
id socket;
41 @property (readonly)
int errNo;
53 + (instancetype)exceptionWithHost: (
OFString*)host
An exception indicating that binding a socket failed.
Definition: OFBindFailedException.h:29
A class for handling strings.
Definition: OFString.h:91
The base class for all exceptions in ObjFW.
Definition: OFException.h:144