コード例 #1
0
        protected override void AddCustomServiceRecord(ref ServiceRecord fullServiceRecord, int livePort)
        {
            var livePort16 = checked ((UInt16)livePort);

            ServiceRecordHelper.SetL2CapPsmNumber(fullServiceRecord,
                                                  livePort16);
            m_sdpService = SdpService.CreateCustom(fullServiceRecord, m_factory);
        }
コード例 #2
0
        protected override void AddCustomServiceRecord(ref ServiceRecord fullServiceRecord, int livePort)
        {
            var livePortB = checked ((byte)livePort);

            ServiceRecordHelper.SetRfcommChannelNumber(fullServiceRecord,
                                                       livePortB);
            m_sdpService = SdpService.CreateCustom(fullServiceRecord, m_factory);
        }