DirectProxySocket

public class DirectProxySocket: ProxySocket

This class just forwards data directly.

Note

It is designed to work with tun2socks only.
  • Undocumented

    See more

    Declaration

    Swift

    public class DirectProxySocket: ProxySocket
  • Undocumented

    See more

    Declaration

    Swift

    public class DirectProxySocket: ProxySocket
  • Undocumented

    Declaration

    Swift

    public class DirectProxySocket: ProxySocket
  • Undocumented

    Declaration

    Swift

    public class DirectProxySocket: ProxySocket
  • Begin reading and processing data from the socket.

    Note

    Since there is nothing to read and process before forwarding data, this just calls delegate?.didReceiveRequest.

    Declaration

    Swift

    override public func openSocket()
  • Response to the AdapterSocket on the other side of the Tunnel which has succefully connected to the remote server.

    Declaration

    Swift

    override public func respondTo(adapter: AdapterSocket)

    Parameters

    adapter

    The AdapterSocket.

  • The socket did read some data.

    Declaration

    Swift

    override open func didRead(data: Data, from: RawTCPSocketProtocol)

    Parameters

    data

    The data read from the socket.

    from

    The socket where the data is read from.

  • The socket did send some data.

    Declaration

    Swift

    override open func didWrite(data: Data?, by: RawTCPSocketProtocol)

    Parameters

    data

    The data which have been sent to remote (acknowledged). Note this may not be available since the data may be released to save memory.

    by

    The socket where the data is sent out.