23OF_ASSUME_NONNULL_BEGIN
45@protocol OFTCPSocketDelegate <OFStreamSocketDelegate>
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;
118@property (nonatomic) uint16_t SOCKS5Port;
126@property OF_NULLABLE_PROPERTY (assign, nonatomic)
127 id <OFTCPSocketDelegate> delegate;
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
196- (void)asyncConnectToHost: (
OFString *)host
209- (void)asyncConnectToHost: (
OFString *)host
void(^ OFTCPSocketAsyncConnectBlock)(id exception)
A block which is called when the socket connected.
Definition OFTCPSocket.h:37
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:72
A class for handling strings.
Definition OFString.h:139
A class which provides methods to create and use TCP sockets.
Definition OFTCPSocket.h:71
OFString * SOCKS5Host
The host to use as a SOCKS5 proxy.
Definition OFTCPSocket.h:113
A struct which represents a host / port pair for a socket.
Definition OFSocket.h:186