예제 #1
0
        public SamLookupResult NamingLookup(string name = null, string options = null)
        {
            string requestString = GenerateNamingLookup(name, options);
            string replyString   = this.Communicate(requestString);

            SamReply reply = SamReplyParser.Parse(replyString);

            return(ParseNamingReply(reply));
        }
예제 #2
0
        public SamDestination DestGenerate(string options = null)
        {
            string requestString = GenerateDestGenerate(options);
            string replyString   = this.Communicate(requestString);

            SamReply reply = SamReplyParser.Parse(replyString);

            return(ParseDestReply(reply));
        }
예제 #3
0
        public string SessionCreate(string style, string id, string destination = null, string options = null)
        {
            string requestString = GenerateSessionCreate(style, id, destination, options);
            string replyString   = this.Communicate(requestString);

            SamReply reply = SamReplyParser.Parse(replyString);

            return(ParseSessionStatus(reply));
        }
예제 #4
0
        public string HelloVersion(string minVersion, string maxVersion, string options = null)
        {
            string requestString = GenerateHelloVersion(minVersion, maxVersion, options);
            string replyString   = this.Communicate(requestString);

            SamReply reply = SamReplyParser.Parse(replyString);

            return(ParseHelloReply(reply));
        }
예제 #5
0
        public void StreamForward(string id, int port, string host = null, bool?silence = null, string options = null)
        {
            bool   silenceBool   = silence ?? false;
            string requestString = GenerateStreamForward(id, port, host, silence, options);
            string replyString   = this.Communicate(requestString, silenceBool);

            if (silenceBool)
            {
                return;
            }
            SamReply reply = SamReplyParser.Parse(replyString);

            ParseStreamStatus(reply);
        }
예제 #6
0
        public void StreamAcceptWithoutPeerName(string id, bool?silence = null, string options = null)
        {
            bool   silenceBool   = silence ?? false;
            string requestString = GenerateStreamAccept(id, silence, options);
            string replyString   = this.Communicate(requestString, silenceBool);

            if (silenceBool)
            {
                return;
            }
            SamReply reply = SamReplyParser.Parse(replyString);

            ParseStreamStatus(reply);
        }
예제 #7
0
        public void StreamConnect(string id, string destination, bool?silence = null, string options = null)
        {
            bool   silenceBool   = silence ?? false;
            string requestString = GenerateStreamConnect(id, destination, silence, options);
            string replyString   = this.Communicate(requestString, silenceBool);

            if (silenceBool)
            {
                return;
            }
            SamReply reply = SamReplyParser.Parse(replyString);

            ParseStreamStatus(reply);
        }