class SSLSocket
package python.lib.ssl
extends Socket
@:pythonImport("ssl","SSLSocket")Available on python
Inherited Variables
Defined by Socket
@:require(python_version >= 3.7)getblocking:() ‑> Bool
Return the current blocking mode of the socket.
Inherited Methods
Defined by Socket
accept():Tuple2<Socket, Address>
Accept a new connected client. This will return a connected socket on which you can read/write some data.
bind(address:Address):Void
Bind the socket to the given host/port so it can afterwards listen for connections there.
close():Void
Closes the socket : make sure to properly close all your sockets or you will crash when you run out of file descriptors.
connect(addr:Address):Void
Connect to the given server host/port. Throw an exception in case we couldn't successfully connect.
getsockopt(family:Int, option:Int):Int
Return the current value of the sockopt as an Int or a Bytes buffer (if buflen is specified).
listen(connections:Int):Void
Allow the socket to listen for incoming questions. The parameter tells how many pending connections we can have until they get refused. Use accept()
to accept incoming connections.
setblocking(b:Bool):Void
Change the blocking mode of the socket. A blocking socket is the default behavior. A non-blocking socket will abort blocking operations immediately by throwing a haxe.io.Error.Blocked value.
setsockopt(family:Int, option:Int, value:Bool):Void
setsockopt(family:Int, option:Int, value:Int):Void
Change the value of the given socket option.
settimeout(timeout:Float):Void
Gives a timeout after which blocking socket operations (such as reading and writing) will abort and throw an exception.