//-------------------------------------------------------------- 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")); } }
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()); }