Esempio n. 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"));
            }
        }
Esempio n. 2
0
 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());
 }