StreamSocketListenerConnectionReceivedEventArgs StreamSocketListenerConnectionReceivedEventArgs StreamSocketListenerConnectionReceivedEventArgs StreamSocketListenerConnectionReceivedEventArgs Class

Provides data for a ConnectionReceived event on a StreamSocketListener object.

Syntax

Declaration

public sealed class StreamSocketListenerConnectionReceivedEventArgspublic sealed class StreamSocketListenerConnectionReceivedEventArgsPublic NotInheritable Class StreamSocketListenerConnectionReceivedEventArgspublic sealed class StreamSocketListenerConnectionReceivedEventArgs

Remarks

The StreamSocketListenerConnectionReceivedEventArgs is used to receive connection data on a StreamSocketListener object.

The BindServiceNameAsync(String, SocketProtectionLevel, NetworkAdapter) or BindEndpointAsync(HostName, String) method is used to bind a StreamSocketListener to a local service name or TCP port.

A ConnectionReceived event occurs if a StreamSocketListener object has been bound to a local service name or TCP port and a connection is received. A StreamSocketListenerConnectionReceivedEventArgs instance is a parameter specified in the callback.

Properties summary

The StreamSocket object created when a connection is received by the StreamSocketListener object.

Properties

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Capabilities

ID_CAP_NETWORKING [Windows Phone]

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.DualApiPartitionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute

Details

Assembly

Windows.Networking.Sockets.dll