Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.4   10.5   11.0   11.1   11.2   11.3   11.4   11.5   12.0   12.1    Statistic    FMM    Blog  

Socket.SSL.Connect

Initiate the TLS/SSL handshake with an TLS/SSL server.

Component Version macOS Windows Linux Server iOS SDK
Socket 3.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Socket.SSL.Connect"; SocketID )   More

Parameters

Parameter Description Example
SocketID The socket ID received by Socket.Connect function. $sock

Result

Returns OK or error.

Description

Initiate the TLS/SSL handshake with an TLS/SSL server.
Calls internally Socket.SSL.Initialize if you did not yet call it.

Instead of using this SSL socket, please consider letting CURL do the job: Use CURL.SetOptionConnectOnly to let CURL connect and than send data using CURL.SendData and CURL.SendText. For receiving, please use CURL.ReceiveData and CURL.ReceiveText. This gives you much more SSL options and proxy support.

See also

Example Databases

Created 18th August 2014, last changed 10th April 2017


Socket.SSL.Accept - Socket.SSL.GetMethod

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins

Start Chat