Example #1
0
 /// <summary>
 /// Create a SnppClientProtocol object pointing to a single unnamed configured server.
 /// </summary>
 public SnppClient()
     : this(SnppConfig.GetHost(null), SnppConfig.GetPort(null))
 {
     Client   = new SnppClientProtocol(null);
     LoginId  = SnppConfig.GetLoginId(null);
     Password = SnppConfig.GetPassword(null);
 }
Example #2
0
 /// <summary>
 /// Create a SnppClient object pointing to a named configured server.
 /// </summary>
 /// <param name="name">The name of the configured server.</param>
 public SnppClient(string name)
     : this(SnppConfig.GetHost(name), SnppConfig.GetPort(name))
 {
     Client   = new SnppClientProtocol(name);
     LoginId  = SnppConfig.GetLoginId(name);
     Password = SnppConfig.GetPassword(name);
 }
Example #3
0
 /// <summary>
 /// Create a SnppClientProtocol object pointing to a single unnamed configured server.
 /// </summary>
 public SnppClient()
     : this(SnppConfig.GetHost(null), SnppConfig.GetPort(null))
 {
     Client = new SnppClientProtocol(null);
     LoginId = SnppConfig.GetLoginId(null);
     Password = SnppConfig.GetPassword(null);
 }
Example #4
0
 /// <summary>
 /// Create a SnppClient object pointing to a named configured server.
 /// </summary>
 /// <param name="name">The name of the configured server.</param>
 public SnppClient(string name)
     : this(SnppConfig.GetHost(name), SnppConfig.GetPort(name))
 {
     Client = new SnppClientProtocol(name);
     LoginId = SnppConfig.GetLoginId(name);
     Password = SnppConfig.GetPassword(name);
 }
Example #5
0
 /// <summary>
 /// Create a SnppClient object pointing to a given host name and port.
 /// </summary>
 /// <param name="host">The host name of the server.</param>
 /// <param name="port">The port of the server.</param>
 /// <param name="loginId">The login id of the server.</param>
 /// <param name="password">The password of the server.</param>
 public SnppClient(string host, int port)
 {
     Client = new SnppClientProtocol(host, port);
 }
Example #6
0
 /// <summary>
 /// Create a SnppClient object pointing to a given host name and port.
 /// </summary>
 /// <param name="host">The host name of the server.</param>
 /// <param name="port">The port of the server.</param>
 /// <param name="loginId">The login id of the server.</param>
 /// <param name="password">The password of the server.</param>
 public SnppClient(string host, int port)
 {
     Client = new SnppClientProtocol(host, port);
 }