v2025.6.2
All Bundles

TCPSecureSocketServer

Secure TCP/IP Server socket

Operations

Accept

Accepts a client connection

method : public : Accept() ~ TCPSecureSocket

Return

TypeDescription
TCPSecureSocketclient socket interface

Close

Closes the server socket

method : public : Close() ~ Nil

GetIssuer

Gets the X.509 certificate's issuer name

method : public : GetIssuer() ~ String

Return

TypeDescription
Stringcertificate issuer name

GetLastError

Get the last error

function : GetLastError() ~ String

Return

TypeDescription
Stringlast error message, or Nil of no error

GetSubject

Gets the X.509 certificate subject name

method : public : GetSubject() ~ String

Return

TypeDescription
Stringcertificate subject name

Listen

Listens for incoming client connections

method : public : Listen() ~ Bool

Return

TypeDescription
Booltrue if client successfully connects, false otherwise

New

Default constructor

New(cert:String, key:String, passwd:String, port:Int)

Parameters

NameTypeDescription
certStringpath to ssl cert
keyStringpath to ssl key
passwdStringprivate key password
portIntserver port