예제 #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);
 }
예제 #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);
 }
예제 #3
0
 /// <summary>
 /// Create a SnppClientProtocol object pointing to a single unnamed configured server.
 /// </summary>
 public SnppClientProtocol()
     : this(SnppConfig.GetHost(null), SnppConfig.GetPort(null))
 {
 }
예제 #4
0
 /// <summary>
 /// Create a SnppClientProtocol object pointing to a named configured server.
 /// </summary>
 /// <param name="name">The name of the configured server.</param>
 public SnppClientProtocol(string name)
     : this(SnppConfig.GetHost(name), SnppConfig.GetPort(name))
 {
 }
예제 #5
0
 /// <summary>
 /// Create a SnppServer object pointing to a single unnamed configured server.
 /// </summary>
 public SnppServer()
     : this(SnppConfig.GetPort(null))
 {
 }
예제 #6
0
 /// <summary>
 /// Create a SnppServer object pointing to a named configured server.
 /// </summary>
 /// <param name="name">The name of the configured server.</param>
 public SnppServer(string name)
     : this(SnppConfig.GetPort(name))
 {
 }