Exemplo n.º 1
0
Arquivo: Port.cs Projeto: 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();
        }
Exemplo 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();
        }