class SslSocket
package java.net
extends Socket
@:native("haxe.java.net.SslSocket")Available on java
Inherited Variables
Defined by Socket
custom:Dynamic
Available on php, hl, lua, cs, neko, cpp, java, macro
A custom value that can be associated with the socket. Can be used to retrieve your custom infos after a select.
Inherited Methods
Defined by Socket
@:has_untypedaccept():Socket
Accept a new connected client. This will return a connected socket on which you can read/write some data.
@:has_untypedbind(host:Host, port:Int):Void
Bind the socket to the given host/port so it can afterwards listen for connections there.
@:has_untypedclose():Void
Closes the socket : make sure to properly close all your sockets or you will crash when you run out of file descriptors.
@:has_untypedconnect(host:Host, port:Int):Void
Connect to the given server host/port. Throw an exception in case we couldn't successfully connect.
@:has_untypedhost():{port:Int, host:Host}
Return the information about our side of a connected socket.
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.
@:has_untypedpeer():{port:Int, host:Host}
Return the information about the other side of a connected socket.
@:has_untypedsetBlocking(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.Blocking value.
setFastSend(b:Bool):Void
Allows the socket to immediately send the data when written to its output : this will cause less ping but might increase the number of packets / data size, especially when doing a lot of small writes.
@:has_untypedsetTimeout(timeout:Float):Void
Gives a timeout after which blocking socket operations (such as reading and writing) will abort and throw an exception.