Esempio n. 1
0
File: Port.cs Progetto: e42s/jungerl
        /*
        * Create an Erlang port from a stream containing a port encoded in
        * Erlang external format.
        *
        * @param buf the stream containing the encoded port.
        *
        * @exception DecodeException if the buffer does not
        * contain a valid external representation of an Erlang port.
        **/
        public Port(OtpInputStream buf)
        {
            Port p = buf.read_port();

            this._node = p.node();
            this._id = p.id();
            this._creation = p.creation();
        }
Esempio n. 2
0
        /*
         * Create an Erlang port from a stream containing a port encoded in
         * Erlang external format.
         *
         * @param buf the stream containing the encoded port.
         *
         * @exception DecodeException if the buffer does not
         * contain a valid external representation of an Erlang port.
         **/
        public Port(OtpInputStream buf)
        {
            Port p = buf.read_port();

            this._node     = p.node();
            this._id       = p.id();
            this._creation = p.creation();
        }