This function is part of the P2P Interface.
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
Parameters
P2P.P2PInterface.AddNotifyPeerConnectionRequest
Parameter Type And Name
|
Usage Information
|
AddNotifyPeerConnectionRequestOptions options
|
Information about who would like notifications, and (optionally) only for a specific socket
|
object clientData
|
This value is returned to the caller when ConnectionRequestHandler is invoked
|
OnIncomingConnectionRequestCallback connectionRequestHandler
|
The callback to be fired when we receive a connection request
|
This function enables your callback (the ConnectionRequestHandler
parameter) to respond to events that happen on the back-end service. Remember to remove your callback function when it is no longer needed.
Because this function is asynchronous, it employs a callback of type EOS_P2P_OnIncomingConnectionRequestCallback to report the results of its operation.
Callback for information related to incoming connection requests.
Callback Parameters
P2P.OnIncomingConnectionRequestCallback
Parameter Type And Name
|
Usage Information
|
OnIncomingConnectionRequestInfo data
|
|