read_port() публичный Метод

public read_port ( ) : Erlang.NET.OtpErlangPort
Результат Erlang.NET.OtpErlangPort
Пример #1
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 OtpErlangDecodeException
         *                    if the buffer does not contain a valid external
         *                    representation of an Erlang port.
         */
        public OtpErlangPort(OtpInputStream buf)
        {
            OtpErlangPort p = buf.read_port();

            node = p.Node;
            id = p.Id;
            creation = p.Creation;
        }
Пример #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 OtpErlangDecodeException
         *                    if the buffer does not contain a valid external
         *                    representation of an Erlang port.
         */
        public OtpErlangPort(OtpInputStream buf)
        {
            OtpErlangPort p = buf.read_port();

            node     = p.Node;
            id       = p.Id;
            creation = p.Creation;
        }