Socket
-
The tunnel forwards data between local and remote.
See moreDeclaration
Swift
public class Tunnel: NSObject, SocketDelegate
-
Undocumented
See more
-
Protocol for socket with various functions.
Any concrete implementation does not need to be thread-safe.
See moreDeclaration
Swift
public protocol SocketProtocol: class
-
The delegate protocol to handle the events from a socket.
See moreDeclaration
Swift
public protocol SocketDelegate : class
-
The current connection status of the socket.
- Invalid: The socket is just created but never connects.
- Connecting: The socket is connecting.
- Established: The connection is established.
- Disconnecting: The socket is disconnecting.
- Closed: The socket is closed.
Declaration
Swift
public enum SocketStatus
-
The socket which encapsulates the logic to handle connection to proxies.
See moreDeclaration
Swift
open class ProxySocket: NSObject, SocketProtocol, RawTCPSocketDelegate
-
Declaration
Swift
public class DirectProxySocket: ProxySocket
-
Undocumented
See more
-
Undocumented
See more
-
Undocumented
See more
-
This adapter connects to remote directly.
See moreDeclaration
Swift
public class DirectAdapter: AdapterSocket
-
This adapter connects to remote host through a HTTP proxy.
See moreDeclaration
Swift
public class HTTPAdapter: AdapterSocket
-
This adapter connects to remote host through a HTTP proxy with SSL.
See moreDeclaration
Swift
public class SecureHTTPAdapter: HTTPAdapter
-
This adapter connects to remote through Shadowsocks proxy.
See moreDeclaration
Swift
public class ShadowsocksAdapter: AdapterSocket
-
This adpater selects the fastest proxy automatically from a set of proxies.
See moreDeclaration
Swift
public class SpeedAdapter: AdapterSocket, SocketDelegate