# Io Reference

Networking / SecureSocket / SecureServer

|  | Interface to secure network communication. A SecureServer is a wrapper on an OpenSSL SSL_CTX object and supports both TLSv1 and DTLSv1. Example:
    //...
|  | dispatchUdp Returns dispatchUdp value. dtlsWrap Returns dtlsWrap value. port Returns the port on which the server will listen for connections. setCAFile(path) Sets the CA file. Returns self. setCRLFile(path) Sets the CRL file. Returns self. setCertFile(path) Sets the certificate file. Returns self. setHost(hostName) Sets the hostName. Returns self. setKeyFile(path) Sets the key file. Returns self. setPort(aNumber) Sets the port on which the server will listen for connections. Returns self. setRequiresClientCertificate(aBool) Sets the requires client certificate attribute. Returns self. stop Stops the server if it is running. Returns self. supportsDTLS Returns true if server supports DTLS, false otherwise. tlsWrap Returns tlsWrap value. udpRecvIP Returns udpRecvIP value. useDTLS Returns useDTLS value. useTLS Returns useTLS value.