Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

StreamSocketListenerConnectionReceivedEventArgs class

Applies to Windows and Windows Phone

Provides data for a ConnectionReceived event on a StreamSocketListener object.

Syntax


/* For information about creating or accessing this object, see Remarks. */

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Version(0x06020000)]

Members

The StreamSocketListenerConnectionReceivedEventArgs class has these types of members:

Methods

The StreamSocketListenerConnectionReceivedEventArgs class inherits methods from the Object class (C#/VB/C++).

Properties

The StreamSocketListenerConnectionReceivedEventArgs class has these properties.

PropertyAccess typeDescription

Socket

Read-onlyThe StreamSocket object created when a connection is received by the StreamSocketListener object.

 

Remarks

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

The StreamSocketListener.BindServiceNameAsync or StreamSocketListener.BindEndpointAsync method is used to bind a StreamSocketListener to a local service name or TCP port.

A StreamSocketListener.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.

Requirements

Minimum supported client

Windows 8 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 [Windows Store apps, desktop apps]

Minimum supported phone

Windows Phone 8

Namespace

Windows.Networking.Sockets
Windows::Networking::Sockets [C++]

Metadata

Windows.winmd

DLL

Windows.Networking.dll

Capabilities

ID_CAP_NETWORKING [Windows Phone]

See also

Object
StreamSocket
StreamSocketListener
ConnectionReceived

 

 

Show:
© 2014 Microsoft. All rights reserved.