RawSocketFactory
open class RawSocketFactory
Factory to create RawTCPSocket
based on configuration.
-
Current active
NETunnelProvider
which createsNWTCPConnection
instance.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.