/// <exception cref="System.Exception"></exception> protected internal virtual void SendRequests() { Session _session = GetSession(); Request request; if (agent_forwarding) { request = new RequestAgentForwarding(); request.DoRequest(_session, this); } if (xforwading) { request = new RequestX11(); request.DoRequest(_session, this); } if (pty) { request = new RequestPtyReq(); ((RequestPtyReq)request).SetTType(ttype); ((RequestPtyReq)request).SetTSize(tcol, trow, twp, thp); if (terminal_mode != null) { ((RequestPtyReq)request).SetTerminalMode(terminal_mode); } request.DoRequest(_session, this); } if (env != null) { for (IEnumerator _env = env.Keys.GetEnumerator(); _env.MoveNext();) { object name = _env.Current; object value = env[name]; request = new RequestEnv(); ((RequestEnv)request).SetEnv(ToByteArray(name), ToByteArray(value)); request.DoRequest(_session, this); } } }
/// <exception cref="System.Exception"></exception> protected internal virtual void SendRequests() { Session _session = GetSession(); Request request; if (agent_forwarding) { request = new RequestAgentForwarding(); request.DoRequest(_session, this); } if (xforwading) { request = new RequestX11(); request.DoRequest(_session, this); } if (pty) { request = new RequestPtyReq(); ((RequestPtyReq)request).SetTType(ttype); ((RequestPtyReq)request).SetTSize(tcol, trow, twp, thp); if (terminal_mode != null) { ((RequestPtyReq)request).SetTerminalMode(terminal_mode); } request.DoRequest(_session, this); } if (env != null) { foreach (var v in env.Keys) { object name = v; object value = env[name]; request = new RequestEnv(); ((RequestEnv)request).SetEnv(ToByteArray(name), ToByteArray(value)); request.DoRequest(_session, this); } } }