Classes

The following classes are available globally.

  • Basic HTTP response to a get request.

    Sends the given data as content to the client

    See more

    Declaration

    Swift

    open class HTTPResponse
  • An input stream which is encrypted using the TLS/SSL protocol.

    The input stream uses an underlying input stream to read the encrypted data, which is then decrypted.

    The decrypted data can then be read from this stream.

    See more

    Declaration

    Swift

    open class TLSInputStream : InputStream, InputStreamDelegate
  • Socket: Endpoint of a TCP/IP connection.

    Data can be read from the socket with the input stream provided as a property of a socket instance.

    Data can be written to the socket with the output stream provided as a property of a socket instance.

    See more

    Declaration

    Swift

    open class TCPSocket : POSIXSocket, CustomStringConvertible
  • A server socket which accepts TCP/IP connections coming to the device on the specified port.

    A server socket automatically listens for IPv4 and IPv6 connections.

    The server socket listens asynchronously in the background and will notify the delegate about new connections.

    See more

    Declaration

    Swift

    public class ServerSocket : CustomStringConvertible