Class DatagramSocket

Index

Properties

Methods

Properties

public control: DatagramSocketControl

public information: DatagramSocketInformation

public onmessagereceived: any

public outputStream: IOutputStream

Methods

public bindEndpointAsync(localHostName: HostName, localServiceName: string): IAsyncAction

Parameters

  • localHostName: HostName
  • localServiceName: string

Returns

IAsyncAction

public bindServiceNameAsync(localServiceName: string): IAsyncAction

Parameters

  • localServiceName: string

Returns

IAsyncAction

public close()

public connectAsync(remoteHostName: HostName, remoteServiceName: string): IAsyncAction

Parameters

  • remoteHostName: HostName
  • remoteServiceName: string

Returns

IAsyncAction

public connectAsync(endpointPair: EndpointPair): IAsyncAction

Parameters

Returns

IAsyncAction

public dispose()

public static getEndpointPairsAsync(remoteHostName: HostName, remoteServiceName: string): IAsyncOperation

Parameters

  • remoteHostName: HostName
  • remoteServiceName: string

Returns

IAsyncOperation

public static getEndpointPairsAsync(remoteHostName: HostName, remoteServiceName: string, sortOptions: HostNameSortOptions): IAsyncOperation

Parameters

Returns

IAsyncOperation

public getOutputStreamAsync(remoteHostName: HostName, remoteServiceName: string): IAsyncOperation

Parameters

  • remoteHostName: HostName
  • remoteServiceName: string

Returns

IAsyncOperation

public getOutputStreamAsync(endpointPair: EndpointPair): IAsyncOperation

Parameters

Returns

IAsyncOperation

public joinMulticastGroup(host: HostName)

Parameters