W3cubDocs

/Haxe C#

Socket

package cs.system.net.sockets

implements IDisposable

Available on cs

Static variables

staticread onlyOSSupportsIPv6:Bool

staticread onlySupportsIPv4:Bool

staticread onlySupportsIPv6:Bool

Static methods

staticSelect(checkRead:IList, checkWrite:IList, checkError:IList, microSeconds:Int):Void

Constructor

finalnew(socketInformation:SocketInformation)

finalnew(family:AddressFamily, type:SocketType, proto:ProtocolType)

Variables

read onlyAddressFamily:AddressFamily

read onlyAvailable:Int

Blocking:Bool

read onlyConnected:Bool

DontFragment:Bool

EnableBroadcast:Bool

ExclusiveAddressUse:Bool

read onlyHandle:IntPtr

read onlyIsBound:Bool

LingerState:LingerOption

read onlyLocalEndPoint:EndPoint

MulticastLoopback:Bool

NoDelay:Bool

read onlyProtocolType:ProtocolType

ReceiveBufferSize:Int

ReceiveTimeout:Int

read onlyRemoteEndPoint:EndPoint

SendBufferSize:Int

SendTimeout:Int

read onlySocketType:SocketType

Ttl:Int16

UseOnlyOverlappedIO:Bool

Methods

finalAccept():Socket

finalAcceptAsync(e:SocketAsyncEventArgs):Bool

finalBeginAccept(callback:AsyncCallback, state:Dynamic):IAsyncResult

finalBeginAccept(acceptSocket:Socket, receiveSize:Int, callback:AsyncCallback, state:Dynamic):IAsyncResult

finalBeginAccept(receiveSize:Int, callback:AsyncCallback, state:Dynamic):IAsyncResult

finalBeginConnect(address:IPAddress, port:Int, callback:AsyncCallback, state:Dynamic):IAsyncResult

finalBeginConnect(addresses:NativeArray<IPAddress>, port:Int, callback:AsyncCallback, state:Dynamic):IAsyncResult

finalBeginConnect(end_point:EndPoint, callback:AsyncCallback, state:Dynamic):IAsyncResult

finalBeginConnect(host:String, port:Int, callback:AsyncCallback, state:Dynamic):IAsyncResult

finalBeginDisconnect(reuseSocket:Bool, callback:AsyncCallback, state:Dynamic):IAsyncResult

finalBeginReceive(buffer:NativeArray<UInt8>, offset:Int, size:Int, socket_flags:SocketFlags, callback:AsyncCallback, state:Dynamic):IAsyncResult

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

finalBeginReceive(buffers:IList_1<ArraySegment_1<UInt8>>, socketFlags:SocketFlags, callback:AsyncCallback, state:Dynamic):IAsyncResult

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

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

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

finalBeginSend(buffer:NativeArray<UInt8>, offset:Int, size:Int, socket_flags:SocketFlags, callback:AsyncCallback, state:Dynamic):IAsyncResult

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

finalBeginSend(buffers:IList_1<ArraySegment_1<UInt8>>, socketFlags:SocketFlags, callback:AsyncCallback, state:Dynamic):IAsyncResult

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

finalBeginSendFile(fileName:String, callback:AsyncCallback, state:Dynamic):IAsyncResult

finalBeginSendFile(fileName:String, preBuffer:NativeArray<UInt8>, postBuffer:NativeArray<UInt8>, flags:TransmitFileOptions, callback:AsyncCallback, state:Dynamic):IAsyncResult

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

finalBind(local_end:EndPoint):Void

finalClose():Void

finalClose(timeout:Int):Void

finalConnect(address:IPAddress, port:Int):Void

finalConnect(remoteEP:EndPoint):Void

finalConnect(host:String, port:Int):Void

finalConnect(addresses:NativeArray<IPAddress>, port:Int):Void

finalConnectAsync(e:SocketAsyncEventArgs):Bool

finalDisconnect(reuseSocket:Bool):Void

finalDisconnectAsync(e:SocketAsyncEventArgs):Bool

finalDuplicateAndClose(targetProcessId:Int):SocketInformation

finalEndAccept(result:IAsyncResult):Socket

finalEndAccept(buffer:Out<NativeArray<UInt8>>, bytesTransferred:Out<Int>, asyncResult:IAsyncResult):Socket

finalEndAccept(buffer:Out<NativeArray<UInt8>>, asyncResult:IAsyncResult):Socket

finalEndConnect(result:IAsyncResult):Void

finalEndDisconnect(asyncResult:IAsyncResult):Void

finalEndReceive(result:IAsyncResult):Int

finalEndReceive(asyncResult:IAsyncResult, errorCode:Out<SocketError>):Int

finalEndReceiveFrom(result:IAsyncResult, end_point:Ref<EndPoint>):Int

finalEndReceiveMessageFrom(asyncResult:IAsyncResult, socketFlags:Ref<SocketFlags>, endPoint:Ref<EndPoint>, ipPacketInformation:Out<IPPacketInformation>):Int

finalEndSend(result:IAsyncResult):Int

finalEndSend(asyncResult:IAsyncResult, errorCode:Out<SocketError>):Int

finalEndSendFile(asyncResult:IAsyncResult):Void

finalEndSendTo(result:IAsyncResult):Int

finalGetSocketOption(optionLevel:SocketOptionLevel, optionName:SocketOptionName, optionValue:NativeArray<UInt8>):Void

finalGetSocketOption(optionLevel:SocketOptionLevel, optionName:SocketOptionName):Dynamic

finalGetSocketOption(optionLevel:SocketOptionLevel, optionName:SocketOptionName, length:Int):NativeArray<UInt8>

finalIOControl(ioctl_code:Int, in_value:NativeArray<UInt8>, out_value:NativeArray<UInt8>):Int

finalIOControl(ioControlCode:IOControlCode, optionInValue:NativeArray<UInt8>, optionOutValue:NativeArray<UInt8>):Int

finalListen(backlog:Int):Void

finalPoll(time_us:Int, mode:SelectMode):Bool

finalReceive(buffer:NativeArray<UInt8>):Int

finalReceive(buffers:IList_1<ArraySegment_1<UInt8>>, socketFlags:SocketFlags, errorCode:Out<SocketError>):Int

finalReceive(buffers:IList_1<ArraySegment_1<UInt8>>, socketFlags:SocketFlags):Int

finalReceive(buffers:IList_1<ArraySegment_1<UInt8>>):Int

finalReceive(buffer:NativeArray<UInt8>, offset:Int, size:Int, flags:SocketFlags, error:Out<SocketError>):Int

finalReceive(buffer:NativeArray<UInt8>, offset:Int, size:Int, flags:SocketFlags):Int

finalReceive(buffer:NativeArray<UInt8>, size:Int, flags:SocketFlags):Int

finalReceive(buffer:NativeArray<UInt8>, flags:SocketFlags):Int

finalReceiveAsync(e:SocketAsyncEventArgs):Bool

finalReceiveFrom(buffer:NativeArray<UInt8>, remoteEP:Ref<EndPoint>):Int

finalReceiveFrom(buffer:NativeArray<UInt8>, offset:Int, size:Int, flags:SocketFlags, remoteEP:Ref<EndPoint>):Int

finalReceiveFrom(buffer:NativeArray<UInt8>, size:Int, flags:SocketFlags, remoteEP:Ref<EndPoint>):Int

finalReceiveFrom(buffer:NativeArray<UInt8>, flags:SocketFlags, remoteEP:Ref<EndPoint>):Int

finalReceiveFromAsync(e:SocketAsyncEventArgs):Bool

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

finalReceiveMessageFromAsync(e:SocketAsyncEventArgs):Bool

finalSend(buf:NativeArray<UInt8>):Int

finalSend(buffers:IList_1<ArraySegment_1<UInt8>>, socketFlags:SocketFlags, errorCode:Out<SocketError>):Int

finalSend(buffers:IList_1<ArraySegment_1<UInt8>>, socketFlags:SocketFlags):Int

finalSend(buffers:IList_1<ArraySegment_1<UInt8>>):Int

finalSend(buf:NativeArray<UInt8>, offset:Int, size:Int, flags:SocketFlags, error:Out<SocketError>):Int

finalSend(buf:NativeArray<UInt8>, offset:Int, size:Int, flags:SocketFlags):Int

finalSend(buf:NativeArray<UInt8>, size:Int, flags:SocketFlags):Int

finalSend(buf:NativeArray<UInt8>, flags:SocketFlags):Int

finalSendAsync(e:SocketAsyncEventArgs):Bool

finalSendFile(fileName:String):Void

finalSendFile(fileName:String, preBuffer:NativeArray<UInt8>, postBuffer:NativeArray<UInt8>, flags:TransmitFileOptions):Void

finalSendPacketsAsync(e:SocketAsyncEventArgs):Bool

finalSendTo(buffer:NativeArray<UInt8>, remote_end:EndPoint):Int

finalSendTo(buffer:NativeArray<UInt8>, offset:Int, size:Int, flags:SocketFlags, remote_end:EndPoint):Int

finalSendTo(buffer:NativeArray<UInt8>, size:Int, flags:SocketFlags, remote_end:EndPoint):Int

finalSendTo(buffer:NativeArray<UInt8>, flags:SocketFlags, remote_end:EndPoint):Int

finalSendToAsync(e:SocketAsyncEventArgs):Bool

finalSetSocketOption(optionLevel:SocketOptionLevel, optionName:SocketOptionName, optionValue:NativeArray<UInt8>):Void

finalSetSocketOption(optionLevel:SocketOptionLevel, optionName:SocketOptionName, optionValue:Int):Void

finalSetSocketOption(optionLevel:SocketOptionLevel, optionName:SocketOptionName, optionValue:Bool):Void

finalSetSocketOption(optionLevel:SocketOptionLevel, optionName:SocketOptionName, optionValue:Dynamic):Void

finalShutdown(how:SocketShutdown):Void

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