19 OF_ASSUME_NONNULL_BEGIN
55 exception: (nullable
id)exception;
76 #ifdef OF_HAVE_CLASS_PROPERTIES
77 @property (
class, nullable, copy, nonatomic)
OFString *SOCKS5Host;
78 @property (
class, nonatomic) uint16_t SOCKS5Port;
81 #if !defined(OF_WII) && !defined(OF_NINTENDO_3DS)
87 @property (nonatomic)
bool sendsKeepAlives;
97 @property (nonatomic)
bool canDelaySendingSegments;
108 @property (nonatomic) uint16_t SOCKS5Port;
116 @property OF_NULLABLE_PROPERTY (assign, nonatomic)
125 + (
void)setSOCKS5Host: (nullable
OFString *)SOCKS5Host;
139 + (
void)setSOCKS5Port: (uint16_t)SOCKS5Port;
146 + (uint16_t)SOCKS5Port;
154 - (
void)connectToHost: (
OFString *)host port: (uint16_t)port;
162 - (
void)asyncConnectToHost: (
OFString *)host port: (uint16_t)port;
171 - (
void)asyncConnectToHost: (
OFString *)host
175 #ifdef OF_HAVE_BLOCKS
183 - (void)asyncConnectToHost: (
OFString *)host
195 - (void)asyncConnectToHost: (
OFString *)host
210 - (uint16_t)bindToHost: (
OFString *)host port: (uint16_t)port;
216 extern Class _Nullable of_tls_socket_class;
221 OF_ASSUME_NONNULL_END
void(^ of_tcp_socket_async_connect_block_t)(id _Nullable exception)
A block which is called when the socket connected.
Definition: OFTCPSocket.h:33
struct objc_object * id
A pointer to any object.
Definition: ObjFWRT.h:90
struct objc_class * Class
A pointer to a class.
Definition: ObjFWRT.h:85
A class for storing constant strings using the @"" literal.
Definition: OFConstantString.h:42
A class which provides methods to create and use stream sockets.
Definition: OFStreamSocket.h:69
A class for handling strings.
Definition: OFString.h:132
A class which provides methods to create and use TCP sockets.
Definition: OFTCPSocket.h:67
OFString * SOCKS5Host
The host to use as a SOCKS5 proxy.
Definition: OFTCPSocket.h:103
Definition: OFStreamSocket.h:45
Definition: OFTCPSocket.h:41