StreamPeerSSL
Category: Core
SSL Stream peer.
Properties
Enumerations
- STATUS_DISCONNECTED = 0 — A status representing a that is disconnected.
- STATUS_HANDSHAKING = 1
- STATUS_CONNECTED = 2 — A status representing a that is connected to a host.
- STATUS_ERROR = 3
- STATUS_ERROR_HOSTNAME_MISMATCH = 4 — An error status that shows a mismatch in the SSL certificate domain presented by the host and the domain requested for validation.
SSL Stream peer. This object can be used to connect to SSL servers.
Tutorials
- blocking_handshake
Method Descriptions
- Error accept_stream ( base )
Connect to a peer using an underlying StreamPeer “stream”, when “validate_certs” is , will validate that the certificate presented by the peer matches the “for_hostname”.
- void disconnect_from_stream ( )
- get_status ( ) const
Returns the status of the connection, one of STATUS_* enum.
- void poll ( )
Poll the connection to check for incoming bytes. Call this right before “get_available_bytes()” for it to work properly.