예제 #1
0
 /** \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;
         }
     }
 }
예제 #2
0
 //private readonly Logger logger = new Logger("IConnectionICPImpl");
 public ConnectionTCPImpl(ServerAddress addr, ConfigOptions opts)
 {
     this.hostAddress = addr;
     this.options = opts;
 }
예제 #3
0
        //private readonly Logger logger = new Logger("IConnectionICPImpl");

        public ConnectionTCPImpl(ServerAddress addr, ConfigOptions opts)
        {
            this.hostAddress = addr;
            this.options     = opts;
        }
예제 #4
0
 /** \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);
 }
예제 #5
0
 /** \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);
 }
예제 #6
0
 /** \fn Sequoiadb()
  *  \brief Default Constructor
  *
  * Server address "127.0.0.1 : 11810"
  */
 public Sequoiadb()
 {
     serverAddress = new ServerAddress();
 }