Overview

Location

  • Reference:
    • RemObjects.InternetPack.fx  Island
    • libRemObjects.InternetPack.fx  Toffee
  • Namespace: RemObjects.InternetPack
  • Platforms: Island, Toffee

constructor

constructor(addressFamily: AddressFamily; socketType: SocketType; protocolType: ProtocolType)
Socket(AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType)
init(_ addressFamily: AddressFamily, _ socketType: SocketType, _ protocolType: ProtocolType)
Sub New(addressFamily As AddressFamily, socketType As SocketType, protocolType As ProtocolType)

Parameters:

  • addressFamily:
  • socketType:
  • protocolType:

Accept  virtual

Function Accept() As Socket

AddressFamily  virtual

property AddressFamily: AddressFamily read write;
AddressFamily AddressFamily { get; set; }
var AddressFamily: AddressFamily { get{} set{} }
Property AddressFamily() As AddressFamily

Available  virtual

property Available: Int32 read;
var Available: Int32 { get{} }
ReadOnly Property Available() As Int32

method BeginAccept(acceptSocket: Socket; receiveSize: Int32; callback: AsyncCallback; state: Object): IAsyncResult
IAsyncResult BeginAccept(Socket acceptSocket, Int32 receiveSize, AsyncCallback callback, Object state)
func BeginAccept(_ acceptSocket: Socket, _ receiveSize: Int32, _ callback: AsyncCallback, _ state: Object) -> IAsyncResult
Function BeginAccept(acceptSocket As Socket, receiveSize As Int32, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • acceptSocket:
  • receiveSize:
  • callback:
  • state:

method BeginAccept(callback: AsyncCallback; state: Object): IAsyncResult
IAsyncResult BeginAccept(AsyncCallback callback, Object state)
func BeginAccept(_ callback: AsyncCallback, _ state: Object) -> IAsyncResult
Function BeginAccept(callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • callback:
  • state:

method BeginAccept(receiveSize: Int32; callback: AsyncCallback; state: Object): IAsyncResult
IAsyncResult BeginAccept(Int32 receiveSize, AsyncCallback callback, Object state)
func BeginAccept(_ receiveSize: Int32, _ callback: AsyncCallback, _ state: Object) -> IAsyncResult
Function BeginAccept(receiveSize As Int32, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • receiveSize:
  • callback:
  • state:

method BeginConnect(address: IPAddress; port: Int32; callback: AsyncCallback; state: Object): IAsyncResult
IAsyncResult BeginConnect(IPAddress address, Int32 port, AsyncCallback callback, Object state)
func BeginConnect(_ address: IPAddress, _ port: Int32, _ callback: AsyncCallback, _ state: Object) -> IAsyncResult
Function BeginConnect(address As IPAddress, port As Int32, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • address:
  • port:
  • callback:
  • state:

method BeginConnect(addresses: array of IPAddress; port: Int32; callback: AsyncCallback; state: Object): IAsyncResult
IAsyncResult BeginConnect(IPAddress[] addresses, Int32 port, AsyncCallback callback, Object state)
func BeginConnect(_ addresses: IPAddress..., _ port: Int32, _ callback: AsyncCallback, _ state: Object) -> IAsyncResult
Function BeginConnect(addresses As IPAddress(), port As Int32, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • addresses:
  • port:
  • callback:
  • state:

method BeginConnect(end_point: EndPoint; callback: AsyncCallback; state: Object): IAsyncResult
IAsyncResult BeginConnect(EndPoint end_point, AsyncCallback callback, Object state)
func BeginConnect(_ end_point: EndPoint, _ callback: AsyncCallback, _ state: Object) -> IAsyncResult
Function BeginConnect(end_point As EndPoint, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • end_point:
  • callback:
  • state:

method BeginConnect(host: String; port: Int32; callback: AsyncCallback; state: Object): IAsyncResult
IAsyncResult BeginConnect(String host, Int32 port, AsyncCallback callback, Object state)
func BeginConnect(_ host: String, _ port: Int32, _ callback: AsyncCallback, _ state: Object) -> IAsyncResult
Function BeginConnect(host As String, port As Int32, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • host:
  • port:
  • callback:
  • state:

BeginDisconnect  virtual

method BeginDisconnect(reuseSocket: Boolean; callback: AsyncCallback; state: Object): IAsyncResult
IAsyncResult BeginDisconnect(Boolean reuseSocket, AsyncCallback callback, Object state)
func BeginDisconnect(_ reuseSocket: Boolean, _ callback: AsyncCallback, _ state: Object) -> IAsyncResult
Function BeginDisconnect(reuseSocket As Boolean, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • reuseSocket:
  • callback:
  • state:

method BeginReceive(buffer: array of Byte; offset: Int32; size: Int32; flags: SocketFlags; out error: SocketError; callback: AsyncCallback; state: Object): IAsyncResult
IAsyncResult BeginReceive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags flags, out SocketError error, AsyncCallback callback, Object state)
func BeginReceive(_ buffer: Byte..., _ offset: Int32, _ size: Int32, _ flags: SocketFlags, _ error: inout SocketError, _ callback: AsyncCallback, _ state: Object) -> IAsyncResult
Function BeginReceive(buffer As Byte(), offset As Int32, size As Int32, flags As SocketFlags, <OutAttribute> ByRef error As SocketError, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • buffer:
  • offset:
  • size:
  • flags:
  • error:
  • callback:
  • state:

method BeginReceive(buffer: array of Byte; offset: Int32; size: Int32; socket_flags: SocketFlags; callback: AsyncCallback; state: Object): IAsyncResult
IAsyncResult BeginReceive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socket_flags, AsyncCallback callback, Object state)
func BeginReceive(_ buffer: Byte..., _ offset: Int32, _ size: Int32, _ socket_flags: SocketFlags, _ callback: AsyncCallback, _ state: Object) -> IAsyncResult
Function BeginReceive(buffer As Byte(), offset As Int32, size As Int32, socket_flags As SocketFlags, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • buffer:
  • offset:
  • size:
  • socket_flags:
  • callback:
  • state:

method BeginSend(buffer: array of Byte; offset: Int32; size: Int32; socket_flags: SocketFlags; callback: AsyncCallback; state: Object): IAsyncResult
IAsyncResult BeginSend(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socket_flags, AsyncCallback callback, Object state)
func BeginSend(_ buffer: Byte..., _ offset: Int32, _ size: Int32, _ socket_flags: SocketFlags, _ callback: AsyncCallback, _ state: Object) -> IAsyncResult
Function BeginSend(buffer As Byte(), offset As Int32, size As Int32, socket_flags As SocketFlags, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • buffer:
  • offset:
  • size:
  • socket_flags:
  • callback:
  • state:

method BeginSend(buffer: array of Byte; offset: Int32; size: Int32; socketFlags: SocketFlags; out errorCode: SocketError; callback: AsyncCallback; state: Object): IAsyncResult
IAsyncResult BeginSend(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, out SocketError errorCode, AsyncCallback callback, Object state)
func BeginSend(_ buffer: Byte..., _ offset: Int32, _ size: Int32, _ socketFlags: SocketFlags, _ errorCode: inout SocketError, _ callback: AsyncCallback, _ state: Object) -> IAsyncResult
Function BeginSend(buffer As Byte(), offset As Int32, size As Int32, socketFlags As SocketFlags, <OutAttribute> ByRef errorCode As SocketError, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • buffer:
  • offset:
  • size:
  • socketFlags:
  • errorCode:
  • callback:
  • state:

Bind  virtual

method Bind(local_end: EndPoint)
void Bind(EndPoint local_end)
func Bind(_ local_end: EndPoint)
Sub Bind(local_end As EndPoint)

Parameters:

  • local_end:

Close  virtual


method Connect(address: IPAddress; port: Int32)
void Connect(IPAddress address, Int32 port)
func Connect(_ address: IPAddress, _ port: Int32)
Sub Connect(address As IPAddress, port As Int32)

Parameters:

  • address:
  • port:

method Connect(addresses: array of IPAddress; port: Int32)
void Connect(IPAddress[] addresses, Int32 port)
func Connect(_ addresses: IPAddress..., _ port: Int32)
Sub Connect(addresses As IPAddress(), port As Int32)

Parameters:

  • addresses:
  • port:

method Connect(host: String; port: Int32)
void Connect(String host, Int32 port)
func Connect(_ host: String, _ port: Int32)
Sub Connect(host As String, port As Int32)

Parameters:

  • host:
  • port:

method Connect(remoteEP: EndPoint)
void Connect(EndPoint remoteEP)
func Connect(_ remoteEP: EndPoint)
Sub Connect(remoteEP As EndPoint)

Parameters:

  • remoteEP:

Connected  virtual

property Connected: Boolean read write;
Boolean Connected { get; set; }
var Connected: Boolean { get{} set{} }
Property Connected() As Boolean

Disconnect  virtual

method Disconnect(reuseSocket: Boolean)
void Disconnect(Boolean reuseSocket)
func Disconnect(_ reuseSocket: Boolean)
Sub Disconnect(reuseSocket As Boolean)

Parameters:

  • reuseSocket:

Dispose


method EndAccept(result: IAsyncResult): Socket
Socket EndAccept(IAsyncResult result)
func EndAccept(_ result: IAsyncResult) -> Socket
Function EndAccept(result As IAsyncResult) As Socket

Parameters:

  • result:

method EndAccept(out buffer: array of Byte; asyncResult: IAsyncResult): Socket
Socket EndAccept(out Byte[] buffer, IAsyncResult asyncResult)
func EndAccept(_ buffer: inout Byte..., _ asyncResult: IAsyncResult) -> Socket
Function EndAccept(<OutAttribute> ByRef buffer As Byte(), asyncResult As IAsyncResult) As Socket

Parameters:

  • buffer:
  • asyncResult:

method EndAccept(out buffer: array of Byte; out bytesTransferred: Int32; asyncResult: IAsyncResult): Socket
Socket EndAccept(out Byte[] buffer, out Int32 bytesTransferred, IAsyncResult asyncResult)
func EndAccept(_ buffer: inout Byte..., _ bytesTransferred: inout Int32, _ asyncResult: IAsyncResult) -> Socket
Function EndAccept(<OutAttribute> ByRef buffer As Byte(), <OutAttribute> ByRef bytesTransferred As Int32, asyncResult As IAsyncResult) As Socket

Parameters:

  • buffer:
  • bytesTransferred:
  • asyncResult:

EndConnect  virtual

method EndConnect(result: IAsyncResult)
void EndConnect(IAsyncResult result)
func EndConnect(_ result: IAsyncResult)
Sub EndConnect(result As IAsyncResult)

Parameters:

  • result:

EndDisconnect  virtual

method EndDisconnect(asyncResult: IAsyncResult)
void EndDisconnect(IAsyncResult asyncResult)
func EndDisconnect(_ asyncResult: IAsyncResult)
Sub EndDisconnect(asyncResult As IAsyncResult)

Parameters:

  • asyncResult:

method EndReceive(asyncResult: IAsyncResult; out errorCode: SocketError): Int32
Int32 EndReceive(IAsyncResult asyncResult, out SocketError errorCode)
func EndReceive(_ asyncResult: IAsyncResult, _ errorCode: inout SocketError) -> Int32
Function EndReceive(asyncResult As IAsyncResult, <OutAttribute> ByRef errorCode As SocketError) As Int32

Parameters:

  • asyncResult:
  • errorCode:

method EndReceive(result: IAsyncResult): Int32
Int32 EndReceive(IAsyncResult result)
func EndReceive(_ result: IAsyncResult) -> Int32
Function EndReceive(result As IAsyncResult) As Int32

Parameters:

  • result:

method EndSend(asyncResult: IAsyncResult; out errorCode: SocketError): Int32
Int32 EndSend(IAsyncResult asyncResult, out SocketError errorCode)
func EndSend(_ asyncResult: IAsyncResult, _ errorCode: inout SocketError) -> Int32
Function EndSend(asyncResult As IAsyncResult, <OutAttribute> ByRef errorCode As SocketError) As Int32

Parameters:

  • asyncResult:
  • errorCode:

method EndSend(result: IAsyncResult): Int32
Int32 EndSend(IAsyncResult result)
func EndSend(_ result: IAsyncResult) -> Int32
Function EndSend(result As IAsyncResult) As Int32

Parameters:

  • result:

FIONREAD Island-Android, Island-iOS Simulator, Island-iOS-arm64, Island-Mac Catalyst, Island-macOS, Island-tvOS Simulator, Island-tvOS-arm64, Island-Ubuntu, Island-watchOS Simulator, Island-watchOS-arm64_32, Toffee

const FIONREAD: Int32 = 1074004095
const Int32 FIONREAD = 1074004095
static let FIONREAD: Int32 = 1074004095
Const FIONREAD As Int32 = 1074004095

Listen  virtual

method Listen(backlog: Int32)
void Listen(Int32 backlog)
func Listen(_ backlog: Int32)
Sub Listen(backlog As Int32)

Parameters:

  • backlog:

LocalEndPoint  virtual

property LocalEndPoint: EndPoint read write;
EndPoint LocalEndPoint { get; set; }
var LocalEndPoint: EndPoint { get{} set{} }
Property LocalEndPoint() As EndPoint

ProtocolType  virtual

property ProtocolType: ProtocolType read write;
ProtocolType ProtocolType { get; set; }
var ProtocolType: ProtocolType { get{} set{} }
Property ProtocolType() As ProtocolType

Receive (array of Byte): Int32  virtual

method Receive(buffer: array of Byte): Int32
Int32 Receive(Byte[] buffer)
func Receive(_ buffer: Byte...) -> Int32
Function Receive(buffer As Byte()) As Int32

Parameters:

  • buffer:

method Receive(buffer: array of Byte; flags: SocketFlags): Int32
Int32 Receive(Byte[] buffer, SocketFlags flags)
func Receive(_ buffer: Byte..., _ flags: SocketFlags) -> Int32
Function Receive(buffer As Byte(), flags As SocketFlags) As Int32

Parameters:

  • buffer:
  • flags:

method Receive(buffer: array of Byte; offset: Int32; size: Int32; flags: SocketFlags): Int32
Int32 Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags flags)
func Receive(_ buffer: Byte..., _ offset: Int32, _ size: Int32, _ flags: SocketFlags) -> Int32
Function Receive(buffer As Byte(), offset As Int32, size As Int32, flags As SocketFlags) As Int32

Parameters:

  • buffer:
  • offset:
  • size:
  • flags:

method Receive(buffer: array of Byte; size: Int32; flags: SocketFlags): Int32
Int32 Receive(Byte[] buffer, Int32 size, SocketFlags flags)
func Receive(_ buffer: Byte..., _ size: Int32, _ flags: SocketFlags) -> Int32
Function Receive(buffer As Byte(), size As Int32, flags As SocketFlags) As Int32

Parameters:

  • buffer:
  • size:
  • flags:

RemoteEndPoint  virtual

property RemoteEndPoint: EndPoint read write;
EndPoint RemoteEndPoint { get; set; }
var RemoteEndPoint: EndPoint { get{} set{} }
Property RemoteEndPoint() As EndPoint

method Send(buf: array of Byte): Int32
func Send(_ buf: Byte...) -> Int32
Function Send(buf As Byte()) As Int32

Parameters:

  • buf:

method Send(buf: array of Byte; flags: SocketFlags): Int32
Int32 Send(Byte[] buf, SocketFlags flags)
func Send(_ buf: Byte..., _ flags: SocketFlags) -> Int32
Function Send(buf As Byte(), flags As SocketFlags) As Int32

Parameters:

  • buf:
  • flags:

method Send(buf: array of Byte; offset: Int32; size: Int32; flags: SocketFlags): Int32
Int32 Send(Byte[] buf, Int32 offset, Int32 size, SocketFlags flags)
func Send(_ buf: Byte..., _ offset: Int32, _ size: Int32, _ flags: SocketFlags) -> Int32
Function Send(buf As Byte(), offset As Int32, size As Int32, flags As SocketFlags) As Int32

Parameters:

  • buf:
  • offset:
  • size:
  • flags:

method Send(buf: array of Byte; size: Int32; flags: SocketFlags): Int32
Int32 Send(Byte[] buf, Int32 size, SocketFlags flags)
func Send(_ buf: Byte..., _ size: Int32, _ flags: SocketFlags) -> Int32
Function Send(buf As Byte(), size As Int32, flags As SocketFlags) As Int32

Parameters:

  • buf:
  • size:
  • flags:

method SetSocketOption(optionLevel: SocketOptionLevel; optionName: SocketOptionName; optionValue: array of Byte)
void SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, Byte[] optionValue)
func SetSocketOption(_ optionLevel: SocketOptionLevel, _ optionName: SocketOptionName, _ optionValue: Byte...)
Sub SetSocketOption(optionLevel As SocketOptionLevel, optionName As SocketOptionName, optionValue As Byte())

Parameters:

  • optionLevel:
  • optionName:
  • optionValue:

method SetSocketOption(optionLevel: SocketOptionLevel; optionName: SocketOptionName; optionValue: Boolean)
void SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, Boolean optionValue)
func SetSocketOption(_ optionLevel: SocketOptionLevel, _ optionName: SocketOptionName, _ optionValue: Boolean)
Sub SetSocketOption(optionLevel As SocketOptionLevel, optionName As SocketOptionName, optionValue As Boolean)

Parameters:

  • optionLevel:
  • optionName:
  • optionValue:

method SetSocketOption(optionLevel: SocketOptionLevel; optionName: SocketOptionName; optionValue: Int32)
void SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, Int32 optionValue)
func SetSocketOption(_ optionLevel: SocketOptionLevel, _ optionName: SocketOptionName, _ optionValue: Int32)
Sub SetSocketOption(optionLevel As SocketOptionLevel, optionName As SocketOptionName, optionValue As Int32)

Parameters:

  • optionLevel:
  • optionName:
  • optionValue:

method SetSocketOption(optionLevel: SocketOptionLevel; optionName: SocketOptionName; optionValue: Object)
void SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, Object optionValue)
func SetSocketOption(_ optionLevel: SocketOptionLevel, _ optionName: SocketOptionName, _ optionValue: Object)
Sub SetSocketOption(optionLevel As SocketOptionLevel, optionName As SocketOptionName, optionValue As Object)

Parameters:

  • optionLevel:
  • optionName:
  • optionValue:

Shutdown  virtual

method Shutdown(how: SocketShutdown)
void Shutdown(SocketShutdown how)
func Shutdown(_ how: SocketShutdown)
Sub Shutdown(how As SocketShutdown)

Parameters:

  • how:

SocketType  virtual

property SocketType: SocketType read write;
SocketType SocketType { get; set; }
var SocketType: SocketType { get{} set{} }
Property SocketType() As SocketType

FIONREAD Island-Android, Island-iOS Simulator, Island-iOS-arm64, Island-Mac Catalyst, Island-macOS, Island-tvOS Simulator, Island-tvOS-arm64, Island-Ubuntu, Island-watchOS Simulator, Island-watchOS-arm64_32, Toffee

const FIONREAD: Int32 = 1074004095
const Int32 FIONREAD = 1074004095
static let FIONREAD: Int32 = 1074004095
Const FIONREAD As Int32 = 1074004095

AddressFamily  virtual

property AddressFamily: AddressFamily read write;
AddressFamily AddressFamily { get; set; }
var AddressFamily: AddressFamily { get{} set{} }
Property AddressFamily() As AddressFamily

Available  virtual

property Available: Int32 read;
var Available: Int32 { get{} }
ReadOnly Property Available() As Int32

Connected  virtual

property Connected: Boolean read write;
Boolean Connected { get; set; }
var Connected: Boolean { get{} set{} }
Property Connected() As Boolean

LocalEndPoint  virtual

property LocalEndPoint: EndPoint read write;
EndPoint LocalEndPoint { get; set; }
var LocalEndPoint: EndPoint { get{} set{} }
Property LocalEndPoint() As EndPoint

ProtocolType  virtual

property ProtocolType: ProtocolType read write;
ProtocolType ProtocolType { get; set; }
var ProtocolType: ProtocolType { get{} set{} }
Property ProtocolType() As ProtocolType

RemoteEndPoint  virtual

property RemoteEndPoint: EndPoint read write;
EndPoint RemoteEndPoint { get; set; }
var RemoteEndPoint: EndPoint { get{} set{} }
Property RemoteEndPoint() As EndPoint

SocketType  virtual

property SocketType: SocketType read write;
SocketType SocketType { get; set; }
var SocketType: SocketType { get{} set{} }
Property SocketType() As SocketType

constructor

constructor(addressFamily: AddressFamily; socketType: SocketType; protocolType: ProtocolType)
Socket(AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType)
init(_ addressFamily: AddressFamily, _ socketType: SocketType, _ protocolType: ProtocolType)
Sub New(addressFamily As AddressFamily, socketType As SocketType, protocolType As ProtocolType)

Parameters:

  • addressFamily:
  • socketType:
  • protocolType:

Accept  virtual

Function Accept() As Socket

method BeginAccept(acceptSocket: Socket; receiveSize: Int32; callback: AsyncCallback; state: Object): IAsyncResult
IAsyncResult BeginAccept(Socket acceptSocket, Int32 receiveSize, AsyncCallback callback, Object state)
func BeginAccept(_ acceptSocket: Socket, _ receiveSize: Int32, _ callback: AsyncCallback, _ state: Object) -> IAsyncResult
Function BeginAccept(acceptSocket As Socket, receiveSize As Int32, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • acceptSocket:
  • receiveSize:
  • callback:
  • state:

method BeginAccept(callback: AsyncCallback; state: Object): IAsyncResult
IAsyncResult BeginAccept(AsyncCallback callback, Object state)
func BeginAccept(_ callback: AsyncCallback, _ state: Object) -> IAsyncResult
Function BeginAccept(callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • callback:
  • state:

method BeginAccept(receiveSize: Int32; callback: AsyncCallback; state: Object): IAsyncResult
IAsyncResult BeginAccept(Int32 receiveSize, AsyncCallback callback, Object state)
func BeginAccept(_ receiveSize: Int32, _ callback: AsyncCallback, _ state: Object) -> IAsyncResult
Function BeginAccept(receiveSize As Int32, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • receiveSize:
  • callback:
  • state:

method BeginConnect(address: IPAddress; port: Int32; callback: AsyncCallback; state: Object): IAsyncResult
IAsyncResult BeginConnect(IPAddress address, Int32 port, AsyncCallback callback, Object state)
func BeginConnect(_ address: IPAddress, _ port: Int32, _ callback: AsyncCallback, _ state: Object) -> IAsyncResult
Function BeginConnect(address As IPAddress, port As Int32, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • address:
  • port:
  • callback:
  • state:

method BeginConnect(addresses: array of IPAddress; port: Int32; callback: AsyncCallback; state: Object): IAsyncResult
IAsyncResult BeginConnect(IPAddress[] addresses, Int32 port, AsyncCallback callback, Object state)
func BeginConnect(_ addresses: IPAddress..., _ port: Int32, _ callback: AsyncCallback, _ state: Object) -> IAsyncResult
Function BeginConnect(addresses As IPAddress(), port As Int32, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • addresses:
  • port:
  • callback:
  • state:

method BeginConnect(end_point: EndPoint; callback: AsyncCallback; state: Object): IAsyncResult
IAsyncResult BeginConnect(EndPoint end_point, AsyncCallback callback, Object state)
func BeginConnect(_ end_point: EndPoint, _ callback: AsyncCallback, _ state: Object) -> IAsyncResult
Function BeginConnect(end_point As EndPoint, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • end_point:
  • callback:
  • state:

method BeginConnect(host: String; port: Int32; callback: AsyncCallback; state: Object): IAsyncResult
IAsyncResult BeginConnect(String host, Int32 port, AsyncCallback callback, Object state)
func BeginConnect(_ host: String, _ port: Int32, _ callback: AsyncCallback, _ state: Object) -> IAsyncResult
Function BeginConnect(host As String, port As Int32, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • host:
  • port:
  • callback:
  • state:

BeginDisconnect  virtual

method BeginDisconnect(reuseSocket: Boolean; callback: AsyncCallback; state: Object): IAsyncResult
IAsyncResult BeginDisconnect(Boolean reuseSocket, AsyncCallback callback, Object state)
func BeginDisconnect(_ reuseSocket: Boolean, _ callback: AsyncCallback, _ state: Object) -> IAsyncResult
Function BeginDisconnect(reuseSocket As Boolean, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • reuseSocket:
  • callback:
  • state:

method BeginReceive(buffer: array of Byte; offset: Int32; size: Int32; flags: SocketFlags; out error: SocketError; callback: AsyncCallback; state: Object): IAsyncResult
IAsyncResult BeginReceive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags flags, out SocketError error, AsyncCallback callback, Object state)
func BeginReceive(_ buffer: Byte..., _ offset: Int32, _ size: Int32, _ flags: SocketFlags, _ error: inout SocketError, _ callback: AsyncCallback, _ state: Object) -> IAsyncResult
Function BeginReceive(buffer As Byte(), offset As Int32, size As Int32, flags As SocketFlags, <OutAttribute> ByRef error As SocketError, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • buffer:
  • offset:
  • size:
  • flags:
  • error:
  • callback:
  • state:

method BeginReceive(buffer: array of Byte; offset: Int32; size: Int32; socket_flags: SocketFlags; callback: AsyncCallback; state: Object): IAsyncResult
IAsyncResult BeginReceive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socket_flags, AsyncCallback callback, Object state)
func BeginReceive(_ buffer: Byte..., _ offset: Int32, _ size: Int32, _ socket_flags: SocketFlags, _ callback: AsyncCallback, _ state: Object) -> IAsyncResult
Function BeginReceive(buffer As Byte(), offset As Int32, size As Int32, socket_flags As SocketFlags, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • buffer:
  • offset:
  • size:
  • socket_flags:
  • callback:
  • state:

method BeginSend(buffer: array of Byte; offset: Int32; size: Int32; socket_flags: SocketFlags; callback: AsyncCallback; state: Object): IAsyncResult
IAsyncResult BeginSend(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socket_flags, AsyncCallback callback, Object state)
func BeginSend(_ buffer: Byte..., _ offset: Int32, _ size: Int32, _ socket_flags: SocketFlags, _ callback: AsyncCallback, _ state: Object) -> IAsyncResult
Function BeginSend(buffer As Byte(), offset As Int32, size As Int32, socket_flags As SocketFlags, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • buffer:
  • offset:
  • size:
  • socket_flags:
  • callback:
  • state:

method BeginSend(buffer: array of Byte; offset: Int32; size: Int32; socketFlags: SocketFlags; out errorCode: SocketError; callback: AsyncCallback; state: Object): IAsyncResult
IAsyncResult BeginSend(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, out SocketError errorCode, AsyncCallback callback, Object state)
func BeginSend(_ buffer: Byte..., _ offset: Int32, _ size: Int32, _ socketFlags: SocketFlags, _ errorCode: inout SocketError, _ callback: AsyncCallback, _ state: Object) -> IAsyncResult
Function BeginSend(buffer As Byte(), offset As Int32, size As Int32, socketFlags As SocketFlags, <OutAttribute> ByRef errorCode As SocketError, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters:

  • buffer:
  • offset:
  • size:
  • socketFlags:
  • errorCode:
  • callback:
  • state:

Bind  virtual

method Bind(local_end: EndPoint)
void Bind(EndPoint local_end)
func Bind(_ local_end: EndPoint)
Sub Bind(local_end As EndPoint)

Parameters:

  • local_end:

Close  virtual


method Connect(address: IPAddress; port: Int32)
void Connect(IPAddress address, Int32 port)
func Connect(_ address: IPAddress, _ port: Int32)
Sub Connect(address As IPAddress, port As Int32)

Parameters:

  • address:
  • port:

method Connect(addresses: array of IPAddress; port: Int32)
void Connect(IPAddress[] addresses, Int32 port)
func Connect(_ addresses: IPAddress..., _ port: Int32)
Sub Connect(addresses As IPAddress(), port As Int32)

Parameters:

  • addresses:
  • port:

method Connect(host: String; port: Int32)
void Connect(String host, Int32 port)
func Connect(_ host: String, _ port: Int32)
Sub Connect(host As String, port As Int32)

Parameters:

  • host:
  • port:

method Connect(remoteEP: EndPoint)
void Connect(EndPoint remoteEP)
func Connect(_ remoteEP: EndPoint)
Sub Connect(remoteEP As EndPoint)

Parameters:

  • remoteEP:

Disconnect  virtual

method Disconnect(reuseSocket: Boolean)
void Disconnect(Boolean reuseSocket)
func Disconnect(_ reuseSocket: Boolean)
Sub Disconnect(reuseSocket As Boolean)

Parameters:

  • reuseSocket:

Dispose


method EndAccept(result: IAsyncResult): Socket
Socket EndAccept(IAsyncResult result)
func EndAccept(_ result: IAsyncResult) -> Socket
Function EndAccept(result As IAsyncResult) As Socket

Parameters:

  • result:

method EndAccept(out buffer: array of Byte; asyncResult: IAsyncResult): Socket
Socket EndAccept(out Byte[] buffer, IAsyncResult asyncResult)
func EndAccept(_ buffer: inout Byte..., _ asyncResult: IAsyncResult) -> Socket
Function EndAccept(<OutAttribute> ByRef buffer As Byte(), asyncResult As IAsyncResult) As Socket

Parameters:

  • buffer:
  • asyncResult:

method EndAccept(out buffer: array of Byte; out bytesTransferred: Int32; asyncResult: IAsyncResult): Socket
Socket EndAccept(out Byte[] buffer, out Int32 bytesTransferred, IAsyncResult asyncResult)
func EndAccept(_ buffer: inout Byte..., _ bytesTransferred: inout Int32, _ asyncResult: IAsyncResult) -> Socket
Function EndAccept(<OutAttribute> ByRef buffer As Byte(), <OutAttribute> ByRef bytesTransferred As Int32, asyncResult As IAsyncResult) As Socket

Parameters:

  • buffer:
  • bytesTransferred:
  • asyncResult:

EndConnect  virtual

method EndConnect(result: IAsyncResult)
void EndConnect(IAsyncResult result)
func EndConnect(_ result: IAsyncResult)
Sub EndConnect(result As IAsyncResult)

Parameters:

  • result:

EndDisconnect  virtual

method EndDisconnect(asyncResult: IAsyncResult)
void EndDisconnect(IAsyncResult asyncResult)
func EndDisconnect(_ asyncResult: IAsyncResult)
Sub EndDisconnect(asyncResult As IAsyncResult)

Parameters:

  • asyncResult:

method EndReceive(asyncResult: IAsyncResult; out errorCode: SocketError): Int32
Int32 EndReceive(IAsyncResult asyncResult, out SocketError errorCode)
func EndReceive(_ asyncResult: IAsyncResult, _ errorCode: inout SocketError) -> Int32
Function EndReceive(asyncResult As IAsyncResult, <OutAttribute> ByRef errorCode As SocketError) As Int32

Parameters:

  • asyncResult:
  • errorCode:

method EndReceive(result: IAsyncResult): Int32
Int32 EndReceive(IAsyncResult result)
func EndReceive(_ result: IAsyncResult) -> Int32
Function EndReceive(result As IAsyncResult) As Int32

Parameters:

  • result:

method EndSend(asyncResult: IAsyncResult; out errorCode: SocketError): Int32
Int32 EndSend(IAsyncResult asyncResult, out SocketError errorCode)
func EndSend(_ asyncResult: IAsyncResult, _ errorCode: inout SocketError) -> Int32
Function EndSend(asyncResult As IAsyncResult, <OutAttribute> ByRef errorCode As SocketError) As Int32

Parameters:

  • asyncResult:
  • errorCode:

method EndSend(result: IAsyncResult): Int32
Int32 EndSend(IAsyncResult result)
func EndSend(_ result: IAsyncResult) -> Int32
Function EndSend(result As IAsyncResult) As Int32

Parameters:

  • result:

Listen  virtual

method Listen(backlog: Int32)
void Listen(Int32 backlog)
func Listen(_ backlog: Int32)
Sub Listen(backlog As Int32)

Parameters:

  • backlog:

Receive (array of Byte): Int32  virtual

method Receive(buffer: array of Byte): Int32
Int32 Receive(Byte[] buffer)
func Receive(_ buffer: Byte...) -> Int32
Function Receive(buffer As Byte()) As Int32

Parameters:

  • buffer:

method Receive(buffer: array of Byte; flags: SocketFlags): Int32
Int32 Receive(Byte[] buffer, SocketFlags flags)
func Receive(_ buffer: Byte..., _ flags: SocketFlags) -> Int32
Function Receive(buffer As Byte(), flags As SocketFlags) As Int32

Parameters:

  • buffer:
  • flags:

method Receive(buffer: array of Byte; offset: Int32; size: Int32; flags: SocketFlags): Int32
Int32 Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags flags)
func Receive(_ buffer: Byte..., _ offset: Int32, _ size: Int32, _ flags: SocketFlags) -> Int32
Function Receive(buffer As Byte(), offset As Int32, size As Int32, flags As SocketFlags) As Int32

Parameters:

  • buffer:
  • offset:
  • size:
  • flags:

method Receive(buffer: array of Byte; size: Int32; flags: SocketFlags): Int32
Int32 Receive(Byte[] buffer, Int32 size, SocketFlags flags)
func Receive(_ buffer: Byte..., _ size: Int32, _ flags: SocketFlags) -> Int32
Function Receive(buffer As Byte(), size As Int32, flags As SocketFlags) As Int32

Parameters:

  • buffer:
  • size:
  • flags:

method Send(buf: array of Byte): Int32
func Send(_ buf: Byte...) -> Int32
Function Send(buf As Byte()) As Int32

Parameters:

  • buf:

method Send(buf: array of Byte; flags: SocketFlags): Int32
Int32 Send(Byte[] buf, SocketFlags flags)
func Send(_ buf: Byte..., _ flags: SocketFlags) -> Int32
Function Send(buf As Byte(), flags As SocketFlags) As Int32

Parameters:

  • buf:
  • flags:

method Send(buf: array of Byte; offset: Int32; size: Int32; flags: SocketFlags): Int32
Int32 Send(Byte[] buf, Int32 offset, Int32 size, SocketFlags flags)
func Send(_ buf: Byte..., _ offset: Int32, _ size: Int32, _ flags: SocketFlags) -> Int32
Function Send(buf As Byte(), offset As Int32, size As Int32, flags As SocketFlags) As Int32

Parameters:

  • buf:
  • offset:
  • size:
  • flags:

method Send(buf: array of Byte; size: Int32; flags: SocketFlags): Int32
Int32 Send(Byte[] buf, Int32 size, SocketFlags flags)
func Send(_ buf: Byte..., _ size: Int32, _ flags: SocketFlags) -> Int32
Function Send(buf As Byte(), size As Int32, flags As SocketFlags) As Int32

Parameters:

  • buf:
  • size:
  • flags:

method SetSocketOption(optionLevel: SocketOptionLevel; optionName: SocketOptionName; optionValue: array of Byte)
void SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, Byte[] optionValue)
func SetSocketOption(_ optionLevel: SocketOptionLevel, _ optionName: SocketOptionName, _ optionValue: Byte...)
Sub SetSocketOption(optionLevel As SocketOptionLevel, optionName As SocketOptionName, optionValue As Byte())

Parameters:

  • optionLevel:
  • optionName:
  • optionValue:

method SetSocketOption(optionLevel: SocketOptionLevel; optionName: SocketOptionName; optionValue: Boolean)
void SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, Boolean optionValue)
func SetSocketOption(_ optionLevel: SocketOptionLevel, _ optionName: SocketOptionName, _ optionValue: Boolean)
Sub SetSocketOption(optionLevel As SocketOptionLevel, optionName As SocketOptionName, optionValue As Boolean)

Parameters:

  • optionLevel:
  • optionName:
  • optionValue:

method SetSocketOption(optionLevel: SocketOptionLevel; optionName: SocketOptionName; optionValue: Int32)
void SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, Int32 optionValue)
func SetSocketOption(_ optionLevel: SocketOptionLevel, _ optionName: SocketOptionName, _ optionValue: Int32)
Sub SetSocketOption(optionLevel As SocketOptionLevel, optionName As SocketOptionName, optionValue As Int32)

Parameters:

  • optionLevel:
  • optionName:
  • optionValue:

method SetSocketOption(optionLevel: SocketOptionLevel; optionName: SocketOptionName; optionValue: Object)
void SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, Object optionValue)
func SetSocketOption(_ optionLevel: SocketOptionLevel, _ optionName: SocketOptionName, _ optionValue: Object)
Sub SetSocketOption(optionLevel As SocketOptionLevel, optionName As SocketOptionName, optionValue As Object)

Parameters:

  • optionLevel:
  • optionName:
  • optionValue:

Shutdown  virtual

method Shutdown(how: SocketShutdown)
void Shutdown(SocketShutdown how)
func Shutdown(_ how: SocketShutdown)
Sub Shutdown(how As SocketShutdown)

Parameters:

  • how: