资源描述:
《视频会议服务器端源码》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、usingSystem;usingSystem.Text;usingSystem.Runtime.InteropServices;namespaceANYCHATAPI{/**************************************************************************************AnyChatPlatformServerSDK***********************************************************
2、***********************/publicclassAnyChatServerSDK{publicconststringAnyChatServerSDKDll="AnyChatServerSDK.dll";//#defineBRAS_SERVERAPPMSG_CONNECTED1///<连接AnyChat服务器成功publicconstintBRAS_SERVERAPPMSG_CONNECTED=1;//#defineBRAS_SERVERAPPMSG_DISCONNECT2///<与A
3、nyChat服务器断开连接publicconstintBRAS_SERVERAPPMSG_DISCONNECT=2;/***回调函数定义*///服务器应用程序消息回调函数定义//typedefvoid(CALLBACK*BRAS_OnServerAppMessage_CallBack)(DWORDdwMsg,LPVOIDlpUserValue);publicdelegatevoidOnServerAppMessageCallBack(intmsg,intuserValue);//SDK定时器回调函数定义(
4、上层应用可以在该回调中处理定时任务,而不需要额外开启线程,或是定时器)//typedefvoid(CALLBACK*BRAS_OnTimerEvent_CallBack)(LPVOIDlpUserValue);publicdelegatevoidOnTimerEventCallBack(intuserValue);//用户身份验证回调函数定义//typedefDWORD(CALLBACK*BRAS_VerifyUser_CallBack)(INLPCTSTRlpUserName,INLPCTSTRlpPa
5、ssword,OUTLPDWORDlpUserID,OUTLPDWORDlpUserLevel,OUTLPTSTRlpNickName,INDWORDdwNCLen,LPVOIDlpUserValue);publicdelegateintVerifyUserCallBack(stringuserName,stringpassword,refintuserID,refintuserLevel,IntPtrnickName,intlen,intuserValue);//用户申请进入房间回调函数定义//type
6、defDWORD(CALLBACK*BRAS_PrepareEnterRoom_CallBack)(DWORDdwUserId,DWORDdwRoomId,LPCTSTRlpRoomName,LPCTSTRlpPassword,LPVOIDlpUserValue);publicdelegateintPrepareEnterRoomCallBack(intuserId,introomId,stringroomName,stringpassword,intuserValue);//用户登录成功回调函数定义//
7、typedefvoid(CALLBACK*BRAS_OnUserLoginAction_CallBack)(DWORDdwUserId,LPCTSTRszUserName,DWORDdwLevel,LPCTSTRszIpAddr,LPVOIDlpUserValue);publicdelegatevoidOnUserLoginActionCallBack(intuserId,stringuserName,intlevel,stringaddr,intuserValue);//用户注销回调函数定义//type
8、defvoid(CALLBACK*BRAS_OnUserLogoutAction_CallBack)(DWORDdwUserId,LPVOIDlpUserValue);publicdelegatevoidOnUserLogoutActionCallBack(intuserId,intuserValue);//用户进入房间回调函数定义//typedefvoid(CALLBACK*BRAS_OnUserEnterRoomActio