SpeedAdapter
public class SpeedAdapter: AdapterSocket, SocketDelegate
This adpater selects the fastest proxy automatically from a set of proxies.
-
Undocumented
Declaration
Swift
public class SpeedAdapter: AdapterSocket, SocketDelegate
-
Undocumented
Declaration
Swift
public class SpeedAdapter: AdapterSocket, SocketDelegate
-
Undocumented
Declaration
Swift
public class SpeedAdapter: AdapterSocket, SocketDelegate
-
Declaration
Swift
override public func openSocketWith(session: ConnectSession)
Parameters
session
-
Declaration
Swift
override public func disconnect(becauseOf error: Error? = nil)
-
Declaration
Swift
override public func forceDisconnect(becauseOf error: Error? = nil)
-
Declaration
Swift
public func didBecomeReadyToForwardWith(socket: SocketProtocol)
Parameters
socket
-
Declaration
Swift
public func didDisconnectWith(socket: SocketProtocol)
Parameters
socket
-
Declaration
Swift
public func didConnectWith(adapterSocket socket: AdapterSocket)
Parameters
adapterSocket
-
Declaration
Swift
public func didWrite(data: Data?, by: SocketProtocol)
Parameters
data
by
-
Declaration
Swift
public func didRead(data: Data, from: SocketProtocol)
Parameters
data
from
-
Declaration
Swift
public func updateAdapterWith(newAdapter: AdapterSocket)
Parameters
newAdapter
-
Declaration
Swift
public func didReceive(session: ConnectSession, from: ProxySocket)
Parameters
session
from