<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Sorry.  I should like to the .proto file, not to the RibEntryProto class which was generated from it. Here it is:</div>
<div><a href="https://github.com/named-data/jndn/blob/master/examples/src/net/named_data/jndn/tests/rib-entry-proto.proto">https://github.com/named-data/jndn/blob/master/examples/src/net/named_data/jndn/tests/rib-entry-proto.proto</a></div>
<div><br>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span><Thompson>, Jeff Thompson <<a href="mailto:jefft0@remap.ucla.edu">jefft0@remap.ucla.edu</a>><br>
<span style="font-weight:bold">Date: </span>Sunday, February 8, 2015 at 18:20<br>
<span style="font-weight:bold">To: </span>Bassem Labib <<a href="mailto:bassem.labib@gmail.com">bassem.labib@gmail.com</a>><br>
<span style="font-weight:bold">Cc: </span>"<a href="mailto:ndn-interest@lists.cs.ucla.edu">ndn-interest@lists.cs.ucla.edu</a>" <<a href="mailto:ndn-interest@lists.cs.ucla.edu">ndn-interest@lists.cs.ucla.edu</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [Ndn-interest] List of registerPrefix<br>
</div>
<div><br>
</div>
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Hello Bassem,</div>
<div><br>
</div>
<div>I added an example to jNDN which sends an interest to /localhost/nfd/rib/list and prints the returned RibEntry message. Please pull the lastest from GitHub. Here is the file:</div>
<div><a href="https://github.com/named-data/jndn/blob/master/examples/src/net/named_data/jndn/tests/TestListRib.java">https://github.com/named-data/jndn/blob/master/examples/src/net/named_data/jndn/tests/TestListRib.java</a></div>
<div><br>
</div>
<div>The content of the returned Data packet is a TLV RibEntry message. To decode it, the example uses the jNDN utility called ProtobufTlv.  This works with a .proto definition file:</div>
<div><a href="https://github.com/named-data/jndn/blob/master/examples/src/net/named_data/jndn/tests/RibEntryProto.java">https://github.com/named-data/jndn/blob/master/examples/src/net/named_data/jndn/tests/RibEntryProto.java</a></div>
<div><br>
</div>
<div>Note that ProtobufTlv does not work with the Protobuf wire format. Instead, ProtobufTlv decodes the TLV and creates an in-memory Protobuf RibEntryMessage object that your code can examine to get the field values. The ProtobufTlv utility is very general.
 You can use it to encode and decode just about any TLV type, if you make the .proto file.</div>
<div><br>
</div>
<div>Let me know if you have any trouble running the example.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>- Jeff T</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Bassem Labib <<a href="mailto:bassem.labib@gmail.com">bassem.labib@gmail.com</a>><br>
<span style="font-weight:bold">Date: </span>Saturday, February 7, 2015 at 11:03<br>
<span style="font-weight:bold">To: </span>Junxiao Shi <<a href="mailto:shijunxiao@email.arizona.edu">shijunxiao@email.arizona.edu</a>><br>
<span style="font-weight:bold">Cc: </span>"<a href="mailto:ndn-interest@lists.cs.ucla.edu">ndn-interest@lists.cs.ucla.edu</a>" <<a href="mailto:ndn-interest@lists.cs.ucla.edu">ndn-interest@lists.cs.ucla.edu</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [Ndn-interest] List of registerPrefix<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">
<div>
<div>
<div>
<div>Hi Junxiao,<br>
<br>
</div>
I don't know how to call `nfd-status -r` command using jNDN.<br>
</div>
Actually, I tried to do so, thorough using the class Node.RegisteredPrefix and Node.RegisterResponse, but I failed.<br>
So, I will be grateful if you provide any sample to get the required list of registerPrefix.<br>
<br>
</div>
Thanks,<br>
</div>
Bassem Labib<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Sat, Feb 7, 2015 at 8:30 PM, Junxiao Shi <span dir="ltr">
<<a href="mailto:shijunxiao@email.arizona.edu" target="_blank">shijunxiao@email.arizona.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi Bassem
<div><br>
</div>
<div>Executing `nfd-status -r` on command line will display the RIB dataset.<br>
</div>
<div><br>
</div>
<div>Routes installed in the RIB can be accessed by <a href="http://redmine.named-data.net/projects/nfd/wiki/RibMgmt#RIB-Dataset" target="_blank">requesting RIB dataset</a>.</div>
<div>In jNDN, you can write a consumer program to request this dataset.</div>
<div><br>
</div>
<div>Yours, Junxiao</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">
<div>
<div class="h5">On Sat, Feb 7, 2015 at 11:25 AM, Bassem Labib <span dir="ltr"><<a href="mailto:bassem.labib@gmail.com" target="_blank">bassem.labib@gmail.com</a>></span> wrote:<br>
</div>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div class="h5">
<div dir="ltr">
<div>
<div>
<div>Hi All,<br>
<br>
</div>
I am using jNDN client with NFD, does any one have a code that can read or list all the "registerPrefix" registered in the FIB or RIB.<br>
<br>
</div>
Thanks in advance,<br>
</div>
Bassem Labib<br>
</div>
<br>
</div>
</div>
_______________________________________________<br>
Ndn-interest mailing list<br>
<a href="mailto:Ndn-interest@lists.cs.ucla.edu" target="_blank">Ndn-interest@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</span></div>
</div>
</span>
</body>
</html>