Documentation

Host - Open Dev Kit Documentation

Open Dev Kit Documentation :: Networking :: Connection Raw :: Host

Networking.ConnectionRaw.Host(
  Address String,
  Port Integer,
  Protocol Connection Protocol,
  Certificate String,
  Key String
) Boolean
Host a server connection allowing remote clients to connect

Parameters

Address String
Local IP address
Port Integer
Local port number (0 to 65535)
Protocol Connection Protocol
Certificate String
Optional X.509 certificate in PEM/DER format (.cert/.cer/.crt/.pem/.der)
Key String
If certificate is provided, this is a required private key used for TLS handshake (.key/.pem/.der)

Return Value

Boolean

Lua Usage

local boolean = connectionRaw:Host(address, port, protocol, certificate, key)

If you think anything is missing, please feel free to: submit documentation feedback on this page