Exemplo n.º 1
0
 // package constructor: called by OtpNode:createMbox(name)
 // to create a named mbox
 internal OtpMbox(OtpNode home, Erlang.Pid self, System.String name)
 {
     this._self    = self;
     this.home     = home;
     this.name     = name;
     this.queue    = new GenericQueue();
     this.links    = new Links(10);
     this.monitors = new System.Collections.Hashtable(49, (float)0.95);
 }
Exemplo n.º 2
0
        /*
         * Intiate and open a connection to a remote node.
         *
         * @exception C#.io.IOException if it was not possible to connect to the peer.
         *
         * @exception OtpAuthException if handshake resulted in an authentication error.
         */
        // package scope
        internal OtpConnection(OtpSelf self, OtpPeer other) : base(self, other)
        {
            this._self = self;
            this.queue = new GenericQueue();

            System.Threading.Thread t = new System.Threading.Thread(new System.Threading.ThreadStart(Start));
            t.IsBackground = true;
            t.Name         = "connection2 " + self.node() + " -> " + other.node();
            t.Start();
        }
Exemplo n.º 3
0
        protected internal GenericQueue queue;         // messages get delivered here

        /*
         * Accept an incoming connection from a remote node. Used by {@link
         * OtpSelf#accept() OtpSelf.accept()} to create a connection
         * based on data received when handshaking with the peer node, when
         * the remote node is the connection intitiator.
         *
         * @exception C#.io.IOException if it was not possible to connect to the peer.
         *
         * @exception OtpAuthException if handshake resulted in an authentication error
         */
        // package scope
        internal OtpConnection(OtpSelf self, System.Net.Sockets.TcpClient s) : base(self, s)
        {
            this._self = self;
            this.queue = new GenericQueue();

            System.Threading.Thread t = new System.Threading.Thread(new System.Threading.ThreadStart(Start));
            t.IsBackground = true;
            t.Name         = "connection " + self.node() + " | " + s.ToString();
            t.Start();
        }
Exemplo n.º 4
0
		protected internal GenericQueue queue; // messages get delivered here
		
		/*
		* Accept an incoming connection from a remote node. Used by {@link
		* OtpSelf#accept() OtpSelf.accept()} to create a connection
		* based on data received when handshaking with the peer node, when
		* the remote node is the connection intitiator.
		*
		* @exception C#.io.IOException if it was not possible to connect to the peer.
		*
		* @exception OtpAuthException if handshake resulted in an authentication error
		*/
		// package scope
		internal OtpConnection(OtpSelf self, System.Net.Sockets.TcpClient s):base(self, s)
		{
			this._self = self;
			this.queue = new GenericQueue();

			System.Threading.Thread t = new System.Threading.Thread(new System.Threading.ThreadStart(Start));
			t.IsBackground = true;
			t.Name = "connection "+self.node()+" | "+s.ToString();
			t.Start();
		}
Exemplo n.º 5
0
 // package constructor: called by OtpNode:createMbox(name)
 // to create a named mbox
 internal OtpMbox(OtpNode home, Erlang.Pid self, System.String name)
 {
     this._self = self;
     this.home = home;
     this.name = name;
     this.queue = new GenericQueue();
     this.links = new Links(10);
 }
Exemplo n.º 6
0
 private void InitBlock(GenericQueue enclosingInstance)
 {
     this.enclosingInstance = enclosingInstance;
 }
Exemplo n.º 7
0
 public Bucket(GenericQueue enclosingInstance, System.Object o)
 {
     InitBlock(enclosingInstance);
     next = null;
     contents = o;
 }
Exemplo n.º 8
0
 public Bucket(GenericQueue enclosingInstance, System.Object o)
 {
     InitBlock(enclosingInstance);
     next     = null;
     contents = o;
 }
Exemplo n.º 9
0
 private void  InitBlock(GenericQueue enclosingInstance)
 {
     this.enclosingInstance = enclosingInstance;
 }
Exemplo n.º 10
0
		// package constructor: called by OtpNode:createMbox(name)
		// to create a named mbox
		internal OtpMbox(OtpNode home, Erlang.Pid self, System.String name)
		{
			this._self = self;
			this.home = home;
			this.name = name;
			this.queue = new GenericQueue();
			this.links = new Links(10);
            this.monitors = new System.Collections.Hashtable(49, (float)0.95);
		}
Exemplo n.º 11
0
		/*
		* Intiate and open a connection to a remote node.
		*
		* @exception C#.io.IOException if it was not possible to connect to the peer.
		*
		* @exception OtpAuthException if handshake resulted in an authentication error.
		*/
		// package scope
		internal OtpConnection(OtpSelf self, OtpPeer other):base(self, other)
		{
			this._self = self;
			this.queue = new GenericQueue();

			System.Threading.Thread t = new System.Threading.Thread(new System.Threading.ThreadStart(Start));
			t.IsBackground = true;
			t.Name = "connection2 "+self.node()+" -> "+other.node();
			t.Start();
		}