Example #1
0
        /*
         * Create an Erlang PID from a stream containing a PID encoded in
         * Erlang external format.
         *
         * @param buf the stream containing the encoded PID.
         *
         * @exception DecodeException if the buffer does not
         * contain a valid external representation of an Erlang PID.
         **/
        public Pid(OtpInputStream buf)
        {
            Pid p = buf.read_pid();

            this._node     = p.node();
            this._id       = p.id();
            this._serial   = p.serial();
            this._creation = p.creation();
        }
Example #2
0
		/*
		* Create an Erlang PID from a stream containing a PID encoded in
		* Erlang external format.
		*
		* @param buf the stream containing the encoded PID.
		* 
		* @exception DecodeException if the buffer does not
		* contain a valid external representation of an Erlang PID.
		**/
		public Pid(OtpInputStream buf)
		{
			Pid p = buf.read_pid();
			
			this._node = p.node();
			this._id = p.id();
			this._serial = p.serial();
			this._creation = p.creation();
		}