/// <summary> /// Constructor /// </summary> /// <param name="key"></param> public GenericTcpIpClient(string key) : base(key) { StreamDebugging = new CommunicationStreamDebugging(key); CrestronEnvironment.ProgramStatusEventHandler += new ProgramStatusEventHandler(CrestronEnvironment_ProgramStatusEventHandler); AutoReconnectIntervalMs = 5000; BufferSize = 2000; }
/// <summary> /// Constructor /// </summary> /// <param name="key"></param> /// <param name="address"></param> /// <param name="port"></param> /// <param name="bufferSize"></param> public GenericTcpIpClient(string key, string address, int port, int bufferSize) : base(key) { StreamDebugging = new CommunicationStreamDebugging(key); Hostname = address; Port = port; BufferSize = bufferSize; AutoReconnectIntervalMs = 5000; CrestronEnvironment.ProgramStatusEventHandler += new ProgramStatusEventHandler(CrestronEnvironment_ProgramStatusEventHandler); }
//string PreviousHostname; //int PreviousPort; //string PreviousUsername; //string PreviousPassword; /// <summary> /// Typical constructor. /// </summary> public GenericSshClient(string key, string hostname, int port, string username, string password) : base(key) { StreamDebugging = new CommunicationStreamDebugging(key); CrestronEnvironment.ProgramStatusEventHandler += new ProgramStatusEventHandler(CrestronEnvironment_ProgramStatusEventHandler); Key = key; Hostname = hostname; Port = port; Username = username; Password = password; AutoReconnectIntervalMs = 5000; }
/// <summary> /// /// </summary> /// <param name="key"></param> /// <param name="address"></param> /// <param name="port"></param> /// <param name="buffefSize"></param> public GenericUdpServer(string key, string address, int port, int buffefSize) : base(key) { StreamDebugging = new CommunicationStreamDebugging(key); Hostname = address; Port = port; BufferSize = buffefSize; DequeueLock = new CCriticalSection(); MessageQueue = new CrestronQueue <GenericUdpReceiveTextExtraArgs>(); CrestronEnvironment.ProgramStatusEventHandler += new ProgramStatusEventHandler(CrestronEnvironment_ProgramStatusEventHandler); CrestronEnvironment.EthernetEventHandler += new EthernetEventHandler(CrestronEnvironment_EthernetEventHandler); }