W3cubDocs

/Haxe C++

NativeSocket

package cpp

Available on cpp

Static methods

static host_local ():String

static inline host_local_ipv6 ():String

static host_resolve (host:String):Int

static host_resolve_ipv6 (host:String):BytesData

static host_reverse (host:Int):String

static host_reverse_ipv6 (ipv6:BytesData):String

static host_to_string (ip:Int):String

static host_to_string_ipv6 (ipv6:BytesData):String

static socket_accept (o:Dynamic):Dynamic

static socket_bind (o:Dynamic, host:Int, port:Int):Void

static socket_bind_ipv6 (o:Dynamic, host:BytesData, port:Int):Void

static socket_close (handle:Dynamic):Void

static socket_connect (o:Dynamic, host:Int, port:Int):Void

static socket_connect_ipv6 (o:Dynamic, host:BytesData, port:Int):Void

static socket_fast_select (rs:Array<Dynamic>, ws:Array<Dynamic>, es:Array<Dynamic>, timeout:Dynamic):Void

static socket_host (o:Dynamic):Array<Int>

static socket_init ():Void

static socket_listen (o:Dynamic, n:Int):Void

static socket_new (udp:Bool):Dynamic

static socket_new_ip (udp:Bool, ipv6:Bool):Dynamic

static socket_peer (o:Dynamic):Array<Int>

static socket_poll (socks:Array<Socket>, pdata:Dynamic, timeout:Float):Array<Socket>

static socket_poll_alloc (nsocks:Int):Dynamic

static socket_poll_events (pdata:Dynamic, timeout:Float):Void

static socket_poll_prepare (pdata:Dynamic, rsocks:Array<Socket>, wsocks:Array<Socket>):Array<Array<Int>>

static socket_read (o:Dynamic):BytesData

static socket_recv (o:Dynamic, buf:BytesData, p:Int, l:Int):Int

static socket_recv_char (o:Dynamic):Int

static socket_recv_from (o:Dynamic, buf:BytesData, p:Int, l:Int, outAddr:Dynamic):Int

static socket_select (rs:Array<Dynamic>, ws:Array<Dynamic>, es:Array<Dynamic>, timeout:Dynamic):Array<Dynamic>

static socket_send (o:Dynamic, buf:BytesData, p:Int, l:Int):Int

static socket_send_char (o:Dynamic, c:Int):Void

static socket_send_to (o:Dynamic, buf:BytesData, p:Int, l:Int, inAddr:Dynamic):Int

static socket_set_blocking (o:Dynamic, b:Bool):Void

static socket_set_fast_send (o:Dynamic, b:Bool):Void

static socket_set_timeout (o:Dynamic, t:Dynamic):Void

static socket_shutdown (o:Dynamic, r:Bool, w:Bool):Void

static socket_write (o:Dynamic, buf:BytesData):Void

© 2005–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/cpp/NativeSocket.html