Socket

package lua.lib.luasocket

extended by TcpClient, TcpMaster, TcpServer

Available on lua

Static variables

static_DEBUG:Bool

static_VERSION:String

Static methods

staticbind(address:String, port:Int, ?backlog:Int):Result<TcpServer>

staticconnect(address:String, port:Int, ?locaddr:String, ?locport:Int):Result<TcpClient>

staticgettime():Float

staticselect(recvt:Table<Int, Socket>, sendt:Table<Int, Socket>, ?timeout:Float):SelectResult

statictcp():Result<TcpMaster>

Methods

close():Void

getsockname():AddrInfo

settimeout(value:Float, ?mode:TimeoutMode):Void

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/lua/lib/luasocket/Socket.html