コード例 #1
0
        //--------------------------------------------------------------
        internal void SetScnForPeerServer(Guid serviceGuid, int scn)
        {
            bool success = m_RfCommIf.ClientAssignScnValue(serviceGuid, scn);

            if (!success)
            {
                throw new IOException(WidcommRfcommStreamBase.WrappingIOExceptionMessage, CommonSocketExceptions.Create_NoResultCode(
                                          CommonSocketExceptions.SocketError_SetSecurityLevel_Client_Fail, "SetScnForPeerServer"));
            }
        }
コード例 #2
0
ファイル: WidcommStRfCommIf.cs プロジェクト: jehy/32feet.NET
 public bool ClientAssignScnValue(Guid serviceGuid, int scn)
 {
     WidcommPortSingleThreader.MiscReturnCommand <bool> cmd = _st.AddCommand(
         new WidcommPortSingleThreader.MiscReturnCommand <bool>(delegate {
         return(_child.ClientAssignScnValue(serviceGuid, scn));
     }));
     return(cmd.WaitCompletion());
 }