class-description NEWS COMMUNITY STORE TUTORIALS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE TUTORIALS TOGGLE FULLSCREEN VOLLBILD AN/AUS ObjectRefCountedStreamPeer StreamPeerTLS
A stream peer that handles TLS connections.

A stream peer that handles TLS connections. This object can be used to connect to a TLS server or accept a single TLS client connection.

Enum Status<>():Enum

STATUS_DISCONNECTED = 0

A status representing a StreamPeerTLS that is disconnected.


STATUS_HANDSHAKING = 1

A status representing a StreamPeerTLS during handshaking.


STATUS_CONNECTED = 2

A status representing a StreamPeerTLS that is connected to a host.


STATUS_ERROR = 3

A status representing a StreamPeerTLS in error state.


STATUS_ERROR_HOSTNAME_MISMATCH = 4

An error status that shows a mismatch in the TLS certificate domain presented by the host and the domain requested for validation.

Error accept_stream<>( StreamPeer stream=, stream:StreamPeer=, TLSOptions server_options=, server_options:TLSOptions=, ):Error

Accepts a peer connection as a server using the given server_options. See TLSOptions.server.

Error connect_to_stream<>( StreamPeer stream=, stream:StreamPeer=, String common_name=, common_name:String=, TLSOptions client_options=null, client_options:TLSOptions=null, ):Error

Connects to a peer using an underlying StreamPeer stream and verifying the remote certificate is correctly signed for the given common_name. You can pass the optional client_options parameter to customize the trusted certification authorities, or disable the common name verification. See TLSOptions.client and TLSOptions.client_unsafe.

void disconnect_from_stream<>():void

Disconnects from host.

Status get_status<>():Status

Returns the status of the connection. See Status for values.

StreamPeer get_stream<>():StreamPeer

Returns the underlying StreamPeer connection, used in accept_stream or connect_to_stream.

void poll<>():void

Poll the connection to check for incoming bytes. Call this right before StreamPeer.get_available_bytes for it to work properly.




All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...