Click or drag to resize
GDStreamSocketConnectAsync Method (HostName, String, SocketProtectionLevel)
Establishes a connection to a remote host using provided HostName port number and SocketProtectionLevel.

Namespace:  GD
Assembly:  GD (in GD.dll) Version: 255.255.255.255
Syntax
public IAsyncAction ConnectAsync(
	HostName remoteHostName,
	string remoteServiceName,
	SocketProtectionLevel protectionLevel
)

Parameters

remoteHostName
Type: Windows.NetworkingHostName
HostName of the remote endpoint.
remoteServiceName
Type: SystemString
Service name of the remote endpoint. String representing port number, eg.: 80 for http connections.
protectionLevel
Type: Windows.Networking.SocketsSocketProtectionLevel
SocketProtectionLevel specifies the level of encryption to use.

Return Value

Type: IAsyncAction
No object or value is returned when this method completes.
See Also