W3cubDocs

/Haxe Lua

Tcp

package lua.lib.luv.net

extends StreamHandle

@:luaRequire("luv") Available on lua

Constructor

@:native("new_tcp") new ()

Methods

bind (address:String, port:Int):Int

connect (host:String, port:Int, cb:String ‑> Bool ‑> Void):Int

getpeername ():String

getsockname ():Int

keepalive (enable:Bool, ?delay:Int):Int

nodelay (enable:Bool):Int

open (sock:Int):Int

simultaneous_accepts (enable:Bool):Int

write_queue_size ():Int

Static methods

static new_tcp ():Tcp

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/lua/lib/luv/net/Tcp.html