nn::nex::Session::RegisterJoinApprovalCallback Member Function

Syntax

static JoinSessionOperationCallback RegisterJoinApprovalCallback(
     JoinSessionOperationCallback pfOperationCallback
);

Parameters

Name Description
in pfOperationCallback Specifies a pointer to the callback function.

Return Values

Returns a pointer to the callback function previously registered.

Description

Sets callback to determine whether a session can be joined.

When someone attempts to join a session, the function specified by pfOperationCallback is called back by the Net-Z system. Inside the specified function you can determine whether to allow the new participant to join the session or deny them from doing so. Join requests are approved by default if no callback has been set, or if the callback returns neither JoinSessionOperation::Approve nor JoinSessionOperation::Deny. The callback is called only when the JoinSessionOperationApprovalState is Unknown or Pending. At this stage, the stations that can be obtained by StationSelectionIterator do not include those stations that have joined the session.

Revision History

2011/01/27
Initial version.

CONFIDENTIAL