Secure TCP/IP Server socket
OperationsDefault constructor
New(cert:String, key:String, passwd:String, port:Int)
Name | Type | Description |
---|---|---|
cert | String | path to ssl cert |
key | String | path to ssl key |
passwd | String | private key password |
port | Int | server port |
Accepts a client connection
method : public : Accept() ~ TCPSecureSocket
Type | Description |
---|---|
TCPSecureSocket | client socket interface |
Closes the server socket
method : public : Close() ~ Nil
Gets the X.509 certificate's issuer name
method : public : GetIssuer() ~ String
Type | Description |
---|---|
String | certificate issuer name |
Get the last error
function : GetLastError() ~ String
Type | Description |
---|---|
String | last error message, or Nil of no error |
Gets the X.509 certificate subject name
method : public : GetSubject() ~ String
Type | Description |
---|---|
String | certificate subject name |
Listens for incoming client connections
method : public : Listen() ~ Bool
Type | Description |
---|---|
Bool | true if client successfully connects, false otherwise |