read_pid() 공개 메소드

public read_pid ( ) : OtpErlangPid
리턴 OtpErlangPid
예제 #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 OtpErlangDecodeException
         *                    if the buffer does not contain a valid external
         *                    representation of an Erlang PID.
         */
        public OtpErlangPid(OtpInputStream buf)
        {
            OtpErlangPid p = buf.read_pid();

            node = p.Node;
            id = p.Id;
            serial = p.Serial;
            creation = p.Creation;
        }
예제 #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 OtpErlangDecodeException
         *                    if the buffer does not contain a valid external
         *                    representation of an Erlang PID.
         */
        public OtpErlangPid(OtpInputStream buf)
        {
            OtpErlangPid p = buf.read_pid();

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