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)); }
public SamDestination DestGenerate(string options = null) { string requestString = GenerateDestGenerate(options); string replyString = this.Communicate(requestString); SamReply reply = SamReplyParser.Parse(replyString); return(ParseDestReply(reply)); }
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)); }
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)); }
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); }
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); }
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); }