Struct StreamPeerSSL
SSL stream peer.
struct StreamPeerSSL
;
This object can be used to connect to an SSL server or accept a single SSL client connection.
Properties
| Name | Type | Description |
|---|---|---|
blockingHandshake[get, set]
|
bool |
Methods
| Name | Description |
|---|---|
acceptStream
|
Accepts a peer connection as a server using the given private_key and providing the given certificate to the client. You can pass the optional chain parameter to provide additional CA chain information along with the certificate.
|
connectToStream
|
Connects to a peer using an underlying StreamPeer stream. If validate_certs is true, StreamPeerSSL will validate that the certificate presented by the peer matches the for_hostname.
Note: Specifying a custom valid_certificate is not supported in HTML5 exports due to browsers restrictions.
|
disconnectFromStream
|
Disconnects from host. |
getStatus
|
Returns the status of the connection. See status for values.
|
isBlockingHandshakeEnabled
|
|
poll
|
Poll the connection to check for incoming bytes. Call this right before StreamPeer for it to work properly.
|
setBlockingHandshakeEnabled
|
Enums
| Name | Description |
|---|---|
Constants
|
|
Status
|