RawSocketFactory

open class RawSocketFactory

Factory to create RawTCPSocket based on configuration.

  • Current active NETunnelProvider which creates NWTCPConnection instance.

    Note

    Must set before any connection is created if NWTCPSocket or NWUDPSocket is used.

    Declaration

    Swift

    open static weak var TunnelProvider: NETunnelProvider?
  • Return RawTCPSocket instance.

    Declaration

    Swift

    open static func getRawSocket(_ type: SocketBaseType? = nil) -> RawTCPSocketProtocol

    Parameters

    type

    The type of the socket.

    Return Value

    The created socket instance.