Esempio n. 1
0
 public ConnectionKeepAlive(TCP enclosingInsatnce, ConnectionTable connectionTable, int interval)
 {
     _enclosingInstance = enclosingInsatnce;
     _ct = connectionTable;
     _interval = interval;
 }
Esempio n. 2
0
        /// <summary> Create a ConnectionTable</summary>
        /// <param name="r">A reference to a receiver of all messages received by this class. Method <code>receive()</code>
        /// will be called.
        /// </param>
        /// <param name="bind_addr">The host name or IP address of the interface to which the server socket will bind.
        /// This is interesting only in multi-homed systems. If bind_addr is null, the
        /// server socket will bind to the first available interface (e.g. /dev/hme0 on
        /// Solaris or /dev/eth0 on Linux systems).
        /// </param>
        /// <param name="srv_port">The port to which the server socket will bind to. If this port is reserved, the next
        /// free port will be taken (incrementing srv_port).
        /// </param>
        /// 

        public ConnectionTable(ConnectionTable.Receiver r, System.Net.IPAddress bind_addr1, System.Net.IPAddress bind_addr2, int srv_port, int port_range, ILogger NCacheLog, int retries, int retryInterval)
        {
            setReceiver(r);
            enclosingInstance = (TCP)r;
            this.bind_addr1 = bind_addr1;

            this.bind_addr2 = bind_addr2;

            this.srv_port = srv_port;

            this.port_range = port_range;

            this._ncacheLog = NCacheLog;

            this._retries = retries;
            this._retryInterval = retryInterval;

            start();
        }
Esempio n. 3
0
 public AsnycMulticast(TCP parent, Message m, bool reEstablish)
 {
     _parent = parent;
     _message = m;
     _reEstablishConnection = reEstablish;
 }