예제 #1
0
        bool LimitToP2PProtocols(bool yes)
        {
            if (reader != null)
            {
                if (yes)
                {
                    Trace.WriteLine("Limit to P2P protocols: yes");
                }
                else
                {
                    Trace.WriteLine("Limit to P2P protocols: no");
                }

                if (!LlcpInitiator.LimitToP2PProtocols(reader, yes))
                {
                    MessageBox.Show("Warning: problem with Control");
                    return(false);
                }
            }
            return(true);
        }
예제 #2
0
        bool AnnounceReceiver(bool yes)
        {
            if (reader != null)
            {
                if (yes)
                {
                    Trace.WriteLine("Announce receiver: yes");
                }
                else
                {
                    Trace.WriteLine("Announce receiver: no");
                }

                if (!LlcpInitiator.AnnounceSnepServer(reader, yes))
                {
                    MessageBox.Show("Warning: problem with ATR GI");
                    return(false);
                }
            }
            return(true);
        }