Raw Socket

  • Represents the type of the socket.

    • NW: The socket based on NWTCPConnection.
    • GCD: The socket based on GCDAsyncSocket.
    See more

    Declaration

    Swift

    public enum SocketBaseType
  • Factory to create RawTCPSocket based on configuration.

    See more

    Declaration

    Swift

    open class RawSocketFactory
  • The raw socket protocol which represents a TCP socket.

    Any concrete implementation does not need to be thread-safe.

    Warning

    It is expected that the instance is accessed on the specific queue only.
    See more

    Declaration

    Swift

    public protocol RawTCPSocketProtocol : class
  • The delegate protocol to handle the events from a raw TCP socket.

    See more

    Declaration

    Swift

    public protocol RawTCPSocketDelegate: class
  • The TCP socket build upon GCDAsyncSocket.

    Warning

    This class is not thread-safe.
    See more

    Declaration

    Swift

    open class GCDTCPSocket: NSObject, GCDAsyncSocketDelegate, RawTCPSocketProtocol
  • The wrapper for NWUDPSession.

    Note

    This class is thread-safe.
    See more

    Declaration

    Swift

    public class NWUDPSocket: NSObject