/** \fn Sequoiadb(List<string> connStrings)
  *  \brief Constructor
  *  \param connStrings Remote server addresses "IP : Port"
  */
 public Sequoiadb(List<string> connStrings)
 {
     if (connStrings.Count == 0)
         throw new BaseException("SDB_INVALIDARG");
     serverAddresses = new ServerAddress[connStrings.Count];
     for (int i = 0; i < connStrings.Count; i++)
     {
         try
         {
             serverAddresses[i] = new ServerAddress(connStrings[i]);
         }
         catch (BaseException e)
         {
             throw e;
         }
     }
 }
        //private readonly Logger logger = new Logger("IConnectionICPImpl");

        public ConnectionTCPImpl(ServerAddress addr, ConfigOptions opts)
        {
            this.hostAddress = addr;
            this.options = opts;
        }
 /** \fn Sequoiadb(string host, int port)
  *  \brief Constructor
  *  \param addr IP address
  *  \param port Port
  */
 public Sequoiadb(string host, int port)
 {
     serverAddress = new ServerAddress(host, port);
 }
 /** \fn Sequoiadb(string connString)
  *  \brief Constructor
  *  \param connString Remote server address "IP : Port" or "IP"(port is 11810)
  */
 public Sequoiadb(string connString)
 {
     serverAddress = new ServerAddress(connString);
 }
 /** \fn Sequoiadb()
  *  \brief Default Constructor
  *  
  * Server address "127.0.0.1 : 11810"
  */
 public Sequoiadb()
 {
     serverAddress = new ServerAddress();
 }
Beispiel #6
0
        //private readonly Logger logger = new Logger("IConnectionICPImpl");

        public ConnectionTCPImpl(ServerAddress addr, ConfigOptions opts)
        {
            this.hostAddress = addr;
            this.options     = opts;
        }