EOS_P2P_AddNotifyPeerConnectionRequest

EOS API reference page for EOS_P2P_AddNotifyPeerConnectionRequest

2 분 소요

This function is part of the P2P Interface.

Remarks

Listen for incoming connection requests on a particular Socket ID, or optionally all Socket IDs. The bound function will only be called if the connection has not already been accepted.

Return Value

A valid notification ID if successfully bound, or EOS_INVALID_NOTIFICATIONID otherwise

See Also

EOS_P2P_RemoveNotifyPeerConnectionRequest

Parameters

EOS_P2P_AddNotifyPeerConnectionRequest

Parameter Type And NameUsage Information
EOS_HP2P Handle
const EOS_P2P_AddNotifyPeerConnectionRequestOptions* OptionsInformation about who would like notifications, and (optionally) only for a specific socket
void* ClientDataThis value is returned to the caller when ConnectionRequestHandler is invoked
EOS_P2P_OnIncomingConnectionRequestCallback ConnectionRequestHandlerThe callback to be fired when we receive a connection request

Callback Function Information

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

Callback Remarks

Callback for information related to incoming connection requests.

Callback Parameters

EOS_P2P_OnIncomingConnectionRequestCallback

Parameter Type And NameUsage Information
const EOS_P2P_OnIncomingConnectionRequestInfo* Data