Table of Contents Index NMS Glossary Previous Page Next Page (Page 15 of 23 in this chapter) Version


cnfJoinConference

Description

Adds a new member to a conference.

Prototype

DWORD cnfJoinConference ( CNFRESOURCEHD cnfresourcehd,
DWORD confid,
CNF_MEMBER_PARMS *parms,
DWORD *memberid)

cnfresourcehd Handle returned by cnfOpenResource.

confid Conference identifier returned by cnfCreateConference.

parms Pointer to a CNF_MEMBER_PARMS structure:

typedef struct
{
DWORD size; /* Size of the structure */
DWORD user_value /* Application provided value */
} CNF_MEMBER_PARMS;
If parms is NULL, take the default parameters.

memberid Pointer to a returned member identifier.

Return Values

Details

This function adds a new member to a conference specified by confid. If the function succeeds, the new member identifier is returned in memberid.

The default values of member attributes are taken from the corresponding CT Access parameters. To allow the new member to talk, set the cnf.member.defattr.talker_enable parameter in the
CT Access parameter section of cnf.cfg, or set the attribute in the application by using
cnfSetMemberAttribute or cnfSetMemberAttributeList.

For more information about adding a member, see Section 4.6.

See Also

cnfGetMemberInfo, cnfLeaveConference, cnfSetMemberAttribute

Example

extern CNFRESOURCEHD cnfresourcehd;

DWORD myJoinConference(DWORD confid, DWORD *memberid)
{
DWORD error; CNF_MEMBER_INFO memberinfo; error = cnfJoinConference (cnfresourcehd, confid, NULL,
&memberid);
if (error != SUCCESS) { printf("Error when joining conference : %d", error); return(error); } error = cnfGetMemberInfo (cnfresourcehd, *memberid,
&memberinfo, sizeof(CNF_MEMBER_INFO));
/* Perform switching operation by using memberinfo.stream and timeslot */ error = cnfSetMemberAttribute (cnfresourcehd, *memberid, MEMBER_ATTR_TALKER_ENABLE, TRUE); return(error);
}


Table of Contents Index NMS Glossary Previous Page Next Page (Page 15 of 23 in this chapter) Version


Want to send us feedback on our documentation? Email: Tech_Pubs@nmss.com
Copyright © 2000, Natural MicroSystems, Inc. All rights reserved.