23 OF_ASSUME_NONNULL_BEGIN
59 exception: (nullable
id)exception;
80 #ifdef OF_HAVE_CLASS_PROPERTIES 81 @property (
class, nullable, copy, nonatomic)
OFString *SOCKS5Host;
82 @property (
class, nonatomic) uint16_t SOCKS5Port;
85 #if !defined(OF_WII) && !defined(OF_NINTENDO_3DS) 94 @property (nonatomic)
bool sendsKeepAlives;
107 @property (nonatomic)
bool canDelaySendingSegments;
113 @property OF_NULLABLE_PROPERTY (copy, nonatomic)
OFString *SOCKS5Host;
118 @property (nonatomic) uint16_t SOCKS5Port;
126 @property OF_NULLABLE_PROPERTY (assign, nonatomic)
135 + (
void)setSOCKS5Host: (nullable
OFString *)SOCKS5Host;
149 + (
void)setSOCKS5Port: (uint16_t)SOCKS5Port;
156 + (uint16_t)SOCKS5Port;
166 - (
void)connectToHost: (
OFString *)host port: (uint16_t)port;
174 - (
void)asyncConnectToHost: (
OFString *)host port: (uint16_t)port;
184 - (
void)asyncConnectToHost: (
OFString *)host
188 #ifdef OF_HAVE_BLOCKS 196 - (void)asyncConnectToHost: (
OFString *)host
209 - (void)asyncConnectToHost: (
OFString *)host
229 OF_ASSUME_NONNULL_END
A class for storing constant strings using the @"" literal.
Definition: OFConstantString.h:41
A struct which represents a host / port pair for a socket.
Definition: OFSocket.h:186
A class for handling strings.
Definition: OFString.h:138
A class which provides methods to create and use TCP sockets.
Definition: OFTCPSocket.h:70
void(^ OFTCPSocketAsyncConnectBlock)(id exception)
A block which is called when the socket connected.
Definition: OFTCPSocket.h:37
A class which provides methods to create and use stream sockets.
Definition: OFStreamSocket.h:69