W3cubDocs

/Haxe C#

Socket

package cs.system.net.sockets

implements IDisposable

@:libType@:csNative@:native("System.Net.Sockets.Socket") Available on cs

Constructor

@:final @:overload new (socketInformation:SocketInformation)

@:final @:overload new (family:AddressFamily, type:SocketType, proto:ProtocolType)

Variables

read only AddressFamily:AddressFamily

read only Available:Int

Blocking:Bool

read only Connected:Bool

DontFragment:Bool

EnableBroadcast:Bool

ExclusiveAddressUse:Bool

read only Handle:IntPtr

read only IsBound:Bool

LingerState:LingerOption

read only LocalEndPoint:EndPoint

MulticastLoopback:Bool

NoDelay:Bool

read only ProtocolType:ProtocolType

ReceiveBufferSize:Int

ReceiveTimeout:Int

read only RemoteEndPoint:EndPoint

SendBufferSize:Int

SendTimeout:Int

read only SocketType:SocketType

Ttl:Int16

UseOnlyOverlappedIO:Bool

Methods

@:final @:overload Accept ():Socket

@:final @:overload AcceptAsync (e:SocketAsyncEventArgs):Bool

@:final @:overload BeginAccept (callback:AsyncCallback, state:Dynamic):IAsyncResult

@:final @:overload BeginAccept (acceptSocket:Socket, receiveSize:Int, callback:AsyncCallback, state:Dynamic):IAsyncResult

@:final @:overload BeginAccept (receiveSize:Int, callback:AsyncCallback, state:Dynamic):IAsyncResult

@:final @:overload BeginConnect (address:IPAddress, port:Int, callback:AsyncCallback, state:Dynamic):IAsyncResult

@:final @:overload BeginConnect (addresses:NativeArray<IPAddress>, port:Int, callback:AsyncCallback, state:Dynamic):IAsyncResult

@:final @:overload BeginConnect (end_point:EndPoint, callback:AsyncCallback, state:Dynamic):IAsyncResult

@:final @:overload BeginConnect (host:String, port:Int, callback:AsyncCallback, state:Dynamic):IAsyncResult

@:final @:overload BeginDisconnect (reuseSocket:Bool, callback:AsyncCallback, state:Dynamic):IAsyncResult

@:final @:overload BeginReceive (buffer:NativeArray<UInt8>, offset:Int, size:Int, socket_flags:SocketFlags, callback:AsyncCallback, state:Dynamic):IAsyncResult

@:final @:overload BeginReceive (buffers:IList_1<ArraySegment_1<UInt8>>, socketFlags:SocketFlags, errorCode:Out<SocketError>, callback:AsyncCallback, state:Dynamic):IAsyncResult

@:final @:overload BeginReceive (buffers:IList_1<ArraySegment_1<UInt8>>, socketFlags:SocketFlags, callback:AsyncCallback, state:Dynamic):IAsyncResult

@:final @:overload BeginReceive (buffer:NativeArray<UInt8>, offset:Int, size:Int, flags:SocketFlags, error:Out<SocketError>, callback:AsyncCallback, state:Dynamic):IAsyncResult

@:final @:overload BeginReceiveFrom (buffer:NativeArray<UInt8>, offset:Int, size:Int, socket_flags:SocketFlags, remote_end:Ref<EndPoint>, callback:AsyncCallback, state:Dynamic):IAsyncResult

@:final @:overload BeginReceiveMessageFrom (buffer:NativeArray<UInt8>, offset:Int, size:Int, socketFlags:SocketFlags, remoteEP:Ref<EndPoint>, callback:AsyncCallback, state:Dynamic):IAsyncResult

@:final @:overload BeginSend (buffer:NativeArray<UInt8>, offset:Int, size:Int, socket_flags:SocketFlags, callback:AsyncCallback, state:Dynamic):IAsyncResult

@:final @:overload BeginSend (buffers:IList_1<ArraySegment_1<UInt8>>, socketFlags:SocketFlags, errorCode:Out<SocketError>, callback:AsyncCallback, state:Dynamic):IAsyncResult

@:final @:overload BeginSend (buffers:IList_1<ArraySegment_1<UInt8>>, socketFlags:SocketFlags, callback:AsyncCallback, state:Dynamic):IAsyncResult

@:final @:overload BeginSend (buffer:NativeArray<UInt8>, offset:Int, size:Int, socketFlags:SocketFlags, errorCode:Out<SocketError>, callback:AsyncCallback, state:Dynamic):IAsyncResult

@:final @:overload BeginSendFile (fileName:String, callback:AsyncCallback, state:Dynamic):IAsyncResult

@:final @:overload BeginSendFile (fileName:String, preBuffer:NativeArray<UInt8>, postBuffer:NativeArray<UInt8>, flags:TransmitFileOptions, callback:AsyncCallback, state:Dynamic):IAsyncResult

@:final @:overload BeginSendTo (buffer:NativeArray<UInt8>, offset:Int, size:Int, socket_flags:SocketFlags, remote_end:EndPoint, callback:AsyncCallback, state:Dynamic):IAsyncResult

@:final @:overload Bind (local_end:EndPoint):Void

@:final @:overload Close ():Void

@:final @:overload Close (timeout:Int):Void

@:final @:overload Connect (address:IPAddress, port:Int):Void

@:final @:overload Connect (remoteEP:EndPoint):Void

@:final @:overload Connect (host:String, port:Int):Void

@:final @:overload Connect (addresses:NativeArray<IPAddress>, port:Int):Void

@:final @:overload ConnectAsync (e:SocketAsyncEventArgs):Bool

@:final @:overload Disconnect (reuseSocket:Bool):Void

@:final @:overload DisconnectAsync (e:SocketAsyncEventArgs):Bool

@:final @:overload DuplicateAndClose (targetProcessId:Int):SocketInformation

@:final @:overload EndAccept (result:IAsyncResult):Socket

@:final @:overload EndAccept (buffer:Out<NativeArray<UInt8>>, bytesTransferred:Out<Int>, asyncResult:IAsyncResult):Socket

@:final @:overload EndAccept (buffer:Out<NativeArray<UInt8>>, asyncResult:IAsyncResult):Socket

@:final @:overload EndConnect (result:IAsyncResult):Void

@:final @:overload EndDisconnect (asyncResult:IAsyncResult):Void

@:final @:overload EndReceive (result:IAsyncResult):Int

@:final @:overload EndReceive (asyncResult:IAsyncResult, errorCode:Out<SocketError>):Int

@:final @:overload EndReceiveFrom (result:IAsyncResult, end_point:Ref<EndPoint>):Int

@:final @:overload EndReceiveMessageFrom (asyncResult:IAsyncResult, socketFlags:Ref<SocketFlags>, endPoint:Ref<EndPoint>, ipPacketInformation:Out<IPPacketInformation>):Int

@:final @:overload EndSend (result:IAsyncResult):Int

@:final @:overload EndSend (asyncResult:IAsyncResult, errorCode:Out<SocketError>):Int

@:final @:overload EndSendFile (asyncResult:IAsyncResult):Void

@:final @:overload EndSendTo (result:IAsyncResult):Int

@:final @:overload GetSocketOption (optionLevel:SocketOptionLevel, optionName:SocketOptionName, optionValue:NativeArray<UInt8>):Void

@:final @:overload GetSocketOption (optionLevel:SocketOptionLevel, optionName:SocketOptionName):Dynamic

@:final @:overload GetSocketOption (optionLevel:SocketOptionLevel, optionName:SocketOptionName, length:Int):NativeArray<UInt8>

@:final @:overload IOControl (ioctl_code:Int, in_value:NativeArray<UInt8>, out_value:NativeArray<UInt8>):Int

@:final @:overload IOControl (ioControlCode:IOControlCode, optionInValue:NativeArray<UInt8>, optionOutValue:NativeArray<UInt8>):Int

@:final @:overload Listen (backlog:Int):Void

@:final @:overload Poll (time_us:Int, mode:SelectMode):Bool

@:final @:overload Receive (buffer:NativeArray<UInt8>):Int

@:final @:overload Receive (buffers:IList_1<ArraySegment_1<UInt8>>, socketFlags:SocketFlags, errorCode:Out<SocketError>):Int

@:final @:overload Receive (buffers:IList_1<ArraySegment_1<UInt8>>, socketFlags:SocketFlags):Int

@:final @:overload Receive (buffers:IList_1<ArraySegment_1<UInt8>>):Int

@:final @:overload Receive (buffer:NativeArray<UInt8>, offset:Int, size:Int, flags:SocketFlags, error:Out<SocketError>):Int

@:final @:overload Receive (buffer:NativeArray<UInt8>, offset:Int, size:Int, flags:SocketFlags):Int

@:final @:overload Receive (buffer:NativeArray<UInt8>, size:Int, flags:SocketFlags):Int

@:final @:overload Receive (buffer:NativeArray<UInt8>, flags:SocketFlags):Int

@:final @:overload ReceiveAsync (e:SocketAsyncEventArgs):Bool

@:final @:overload ReceiveFrom (buffer:NativeArray<UInt8>, remoteEP:Ref<EndPoint>):Int

@:final @:overload ReceiveFrom (buffer:NativeArray<UInt8>, offset:Int, size:Int, flags:SocketFlags, remoteEP:Ref<EndPoint>):Int

@:final @:overload ReceiveFrom (buffer:NativeArray<UInt8>, size:Int, flags:SocketFlags, remoteEP:Ref<EndPoint>):Int

@:final @:overload ReceiveFrom (buffer:NativeArray<UInt8>, flags:SocketFlags, remoteEP:Ref<EndPoint>):Int

@:final @:overload ReceiveFromAsync (e:SocketAsyncEventArgs):Bool

@:final @:overload ReceiveMessageFrom (buffer:NativeArray<UInt8>, offset:Int, size:Int, socketFlags:Ref<SocketFlags>, remoteEP:Ref<EndPoint>, ipPacketInformation:Out<IPPacketInformation>):Int

@:final @:overload ReceiveMessageFromAsync (e:SocketAsyncEventArgs):Bool

@:final @:overload Send (buf:NativeArray<UInt8>):Int

@:final @:overload Send (buffers:IList_1<ArraySegment_1<UInt8>>, socketFlags:SocketFlags, errorCode:Out<SocketError>):Int

@:final @:overload Send (buffers:IList_1<ArraySegment_1<UInt8>>, socketFlags:SocketFlags):Int

@:final @:overload Send (buffers:IList_1<ArraySegment_1<UInt8>>):Int

@:final @:overload Send (buf:NativeArray<UInt8>, offset:Int, size:Int, flags:SocketFlags, error:Out<SocketError>):Int

@:final @:overload Send (buf:NativeArray<UInt8>, offset:Int, size:Int, flags:SocketFlags):Int

@:final @:overload Send (buf:NativeArray<UInt8>, size:Int, flags:SocketFlags):Int

@:final @:overload Send (buf:NativeArray<UInt8>, flags:SocketFlags):Int

@:final @:overload SendAsync (e:SocketAsyncEventArgs):Bool

@:final @:overload SendFile (fileName:String):Void

@:final @:overload SendFile (fileName:String, preBuffer:NativeArray<UInt8>, postBuffer:NativeArray<UInt8>, flags:TransmitFileOptions):Void

@:final @:overload SendPacketsAsync (e:SocketAsyncEventArgs):Bool

@:final @:overload SendTo (buffer:NativeArray<UInt8>, remote_end:EndPoint):Int

@:final @:overload SendTo (buffer:NativeArray<UInt8>, offset:Int, size:Int, flags:SocketFlags, remote_end:EndPoint):Int

@:final @:overload SendTo (buffer:NativeArray<UInt8>, size:Int, flags:SocketFlags, remote_end:EndPoint):Int

@:final @:overload SendTo (buffer:NativeArray<UInt8>, flags:SocketFlags, remote_end:EndPoint):Int

@:final @:overload SendToAsync (e:SocketAsyncEventArgs):Bool

@:final @:overload SetSocketOption (optionLevel:SocketOptionLevel, optionName:SocketOptionName, optionValue:NativeArray<UInt8>):Void

@:final @:overload SetSocketOption (optionLevel:SocketOptionLevel, optionName:SocketOptionName, optionValue:Int):Void

@:final @:overload SetSocketOption (optionLevel:SocketOptionLevel, optionName:SocketOptionName, optionValue:Bool):Void

@:final @:overload SetSocketOption (optionLevel:SocketOptionLevel, optionName:SocketOptionName, optionValue:Dynamic):Void

@:final @:overload Shutdown (how:SocketShutdown):Void

Static variables

static read only OSSupportsIPv6:Bool

static read only SupportsIPv4:Bool

static read only SupportsIPv6:Bool

Static methods

@:final @:overload static Select (checkRead:IList, checkWrite:IList, checkError:IList, microSeconds:Int):Void

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/cs/system/net/sockets/Socket.html