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:
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
13.5
Statistic
FMM
Blog
Socket.SSL.Initialize
Initializes a SSL connection.
Component |
Version |
macOS |
Windows |
Linux |
Server |
iOS SDK |
Socket
|
3.5 |
✅ Yes |
✅ Yes |
✅ Yes |
✅ Yes |
✅ Yes |
MBS( "Socket.SSL.Initialize"; SocketID )
More
MBS(
"Socket.SSL.Initialize"; /* Initializes a SSL connection. */
$SocketID) /* The socket ID received by
Socket.Connect function.e.g. $sock */
Less
Parameters
Parameter |
Description |
Example |
SocketID |
The socket ID received by Socket.Connect function. |
$sock |
Result
Returns OK or error.
Description
Initializes a SSL connection.
First you need to create TCP socket and accept or connect.
Optionally you can call Socket.SSL.Prepare first.
After Socket.SSL.Initialize you can call Socket.SSL.Connect or Socket.SSL.Accept.
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
This function checks for a license.
Created 18th August 2014, last changed 10th April 2017
Socket.SSL.GetMethod
-
Socket.SSL.Prepare