| /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| * Copyright (C) 2014 Named Data Networking Project |
| * See COPYING for copyright and distribution information. |
| #ifndef NFD_FACE_NDNLP_PARSE_HPP |
| #define NFD_FACE_NDNLP_PARSE_HPP |
| struct ParseError : public std::runtime_error |
| ParseError(const std::string& what) |
| : std::runtime_error(what) |
| /** \brief represents a NdnlpData packet |
| * NdnlpData ::= NDNLP-DATA-TYPE TLV-LENGTH |
| /** \brief parse a NdnlpData packet |
| * \exception ParseError packet is malformated |
| wireDecode(const Block& wire); |
| #endif // NFD_FACE_NDNLP_PARSE_HPP |