W3cubDocs

/Haxe C++

NativeSocket

package cpp

@:buildXml("<include name=\"${HXCPP}/src/hx/libs/std/Build.xml\"/>") Available on cpp

Static methods

@:extern @:native("_hx_std_host_local") static host_local ():String

static inline host_local_ipv6 ():String

@:extern @:native("_hx_std_host_resolve") static host_resolve (host:String):Int

@:extern @:native("_hx_std_host_resolve_ipv6") static host_resolve_ipv6 (host:String):BytesData

@:extern @:native("_hx_std_host_reverse") static host_reverse (host:Int):String

@:extern @:native("_hx_std_host_reverse_ipv6") static host_reverse_ipv6 (ipv6:BytesData):String

@:extern @:native("_hx_std_host_to_string") static host_to_string (ip:Int):String

@:extern @:native("_hx_std_host_to_string_ipv6") static host_to_string_ipv6 (ipv6:BytesData):String

@:extern @:native("_hx_std_socket_accept") static socket_accept (o:Dynamic):Dynamic

@:extern @:native("_hx_std_socket_bind") static socket_bind (o:Dynamic, host:Int, port:Int):Void

@:extern @:native("_hx_std_socket_bind_ipv6") static socket_bind_ipv6 (o:Dynamic, host:BytesData, port:Int):Void

@:extern @:native("_hx_std_socket_close") static socket_close (handle:Dynamic):Void

@:extern @:native("_hx_std_socket_connect") static socket_connect (o:Dynamic, host:Int, port:Int):Void

@:extern @:native("_hx_std_socket_connect_ipv6") static socket_connect_ipv6 (o:Dynamic, host:BytesData, port:Int):Void

@:extern @:native("_hx_std_socket_fast_select") static socket_fast_select (rs:Array<Dynamic>, ws:Array<Dynamic>, es:Array<Dynamic>, timeout:Dynamic):Void

@:extern @:native("_hx_std_socket_host") static socket_host (o:Dynamic):Array<Int>

@:extern @:native("_hx_std_socket_init") static socket_init ():Void

@:extern @:native("_hx_std_socket_listen") static socket_listen (o:Dynamic, n:Int):Void

@:extern @:native("_hx_std_socket_new") static socket_new (udp:Bool):Dynamic

@:extern @:native("_hx_std_socket_new") static socket_new_ip (udp:Bool, ipv6:Bool):Dynamic

@:extern @:native("_hx_std_socket_peer") static socket_peer (o:Dynamic):Array<Int>

@:extern @:native("_hx_std_socket_poll") static socket_poll (socks:Array<Socket>, pdata:Dynamic, timeout:Float):Array<Socket>

@:extern @:native("_hx_std_socket_poll_alloc") static socket_poll_alloc (nsocks:Int):Dynamic

@:extern @:native("_hx_std_socket_poll_events") static socket_poll_events (pdata:Dynamic, timeout:Float):Void

@:extern @:native("_hx_std_socket_poll_prepare") static socket_poll_prepare (pdata:Dynamic, rsocks:Array<Socket>, wsocks:Array<Socket>):Array<Array<Int>>

@:extern @:native("_hx_std_socket_read") static socket_read (o:Dynamic):BytesData

@:extern @:native("_hx_std_socket_recv") static socket_recv (o:Dynamic, buf:BytesData, p:Int, l:Int):Int

@:extern @:native("_hx_std_socket_recv_char") static socket_recv_char (o:Dynamic):Int

@:extern @:native("_hx_std_socket_recv_from") static socket_recv_from (o:Dynamic, buf:BytesData, p:Int, l:Int, outAddr:Dynamic):Int

@:extern @:native("_hx_std_socket_select") static socket_select (rs:Array<Dynamic>, ws:Array<Dynamic>, es:Array<Dynamic>, timeout:Dynamic):Array<Dynamic>

@:extern @:native("_hx_std_socket_send") static socket_send (o:Dynamic, buf:BytesData, p:Int, l:Int):Int

@:extern @:native("_hx_std_socket_send_char") static socket_send_char (o:Dynamic, c:Int):Void

@:extern @:native("_hx_std_socket_send_to") static socket_send_to (o:Dynamic, buf:BytesData, p:Int, l:Int, inAddr:Dynamic):Int

@:extern @:native("_hx_std_socket_set_blocking") static socket_set_blocking (o:Dynamic, b:Bool):Void

@:extern @:native("_hx_std_socket_set_fast_send") static socket_set_fast_send (o:Dynamic, b:Bool):Void

@:extern @:native("_hx_std_socket_set_timeout") static socket_set_timeout (o:Dynamic, t:Dynamic):Void

@:extern @:native("_hx_std_socket_shutdown") static socket_shutdown (o:Dynamic, r:Bool, w:Bool):Void

@:extern @:native("_hx_std_socket_write") static socket_write (o:Dynamic, buf:BytesData):Void

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