EOS_P2P_AddNotifyPeerConnectionEstablished

EOS API reference page for EOS_P2P_AddNotifyPeerConnectionEstablished

Choose your implementation method:

C

C#

This function is part of the P2P Interface.

Remarks

Listen for when a connection is established.

Return Value

A valid notification ID if successfully bound, or EOS_INVALID_NOTIFICATIONID otherwise

Parameters

EOS_P2P_AddNotifyPeerConnectionEstablished

Parameter Type And Name

Usage Information

EOS_HP2P Handle

const EOS_P2P_AddNotifyPeerConnectionEstablishedOptions* Options

Information about who would like notifications about established connections, and for which socket

void* ClientData

This value is returned to the caller when ConnectionEstablishedHandler is invoked

EOS_P2P_OnPeerConnectionEstablishedCallback ConnectionEstablishedHandler

The callback to be fired when a connection has been established

This function enables your callback (the ConnectionEstablishedHandler parameter) to respond to events that happen on the back-end service. Remember to remove your callback function when it is no longer needed.

Callback Function Information

Because this function is asynchronous, it employs a callback of type EOS_P2P_OnPeerConnectionEstablishedCallback to report the results of its operation.

Callback Remarks

Callback for information related to new connections being established

Callback Parameters

EOS_P2P_OnPeerConnectionEstablishedCallback

Parameter Type And Name

Usage Information

const EOS_P2P_OnPeerConnectionEstablishedInfo* Data

Related API Members

This function is part of the P2P Interface.

Remarks

Listen for when a connection is established.

Return Value

A valid notification ID if successfully bound, or {Common.InvalidNotificationid} otherwise

Parameters

P2P.P2PInterface.AddNotifyPeerConnectionEstablished

Parameter Type And Name

Usage Information

AddNotifyPeerConnectionEstablishedOptions options

Information about who would like notifications about established connections, and for which socket

object clientData

This value is returned to the caller when ConnectionEstablishedHandler is invoked

OnPeerConnectionEstablishedCallback connectionEstablishedHandler

The callback to be fired when a connection has been established

This function enables your callback (the ConnectionEstablishedHandler parameter) to respond to events that happen on the back-end service. Remember to remove your callback function when it is no longer needed.

Callback Function Information

Because this function is asynchronous, it employs a callback of type P2P.OnPeerConnectionEstablishedCallback to report the results of its operation.

Callback Remarks

Callback for information related to new connections being established

Callback Parameters

P2P.OnPeerConnectionEstablishedCallback

Parameter Type And Name

Usage Information

OnPeerConnectionEstablishedInfo data

Related API Members

Tags