19OF_ASSUME_NONNULL_BEGIN
41@protocol OFTCPSocketDelegate <OFStreamSocketDelegate>
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)
90@property (nonatomic)
bool sendsKeepAlives;
103@property (nonatomic)
bool canDelaySendingSegments;
114@property (nonatomic) uint16_t SOCKS5Port;
122@property OF_NULLABLE_PROPERTY (assign, nonatomic)
123 id <OFTCPSocketDelegate> delegate;
131+ (
void)setSOCKS5Host: (nullable
OFString *)SOCKS5Host;
145+ (
void)setSOCKS5Port: (uint16_t)SOCKS5Port;
152+ (uint16_t)SOCKS5Port;
162- (
void)connectToHost: (
OFString *)host port: (uint16_t)port;
170- (
void)asyncConnectToHost: (
OFString *)host port: (uint16_t)port;
180- (
void)asyncConnectToHost: (
OFString *)host
192- (void)asyncConnectToHost: (
OFString *)host
205- (void)asyncConnectToHost: (
OFString *)host
void(^ OFTCPSocketAsyncConnectBlock)(id exception)
A block which is called when the socket connected.
Definition OFTCPSocket.h:33
A class for storing constant strings using the @"" literal.
Definition OFConstantString.h:38
A class which provides methods to create and use stream sockets.
Definition OFStreamSocket.h:68
A class for handling strings.
Definition OFString.h:135
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:109
A struct which represents a host / port pair for a socket.
Definition OFSocket.h:182