Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (C) 2013-2015 Regents of the University of California.

Jeff Thompson <> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <>. A copy of the GNU Lesser General Public License is in the file COPYING.
package net.named_data.jndn;

A class implements OnData if it has onData, used to pass a callback to Face.expressInterest.
public interface OnData {
When a matching data packet is received, onData is called.

interest The interest given to Face.expressInterest. NOTE: You must not change the interest object - if you need to change it then make a copy.
data The received Data object.
  void onData(Interest interestData data);
New to GrepCode? Check out our FAQ X