Read-only gsubtree of platform2/libipp/ code

Clone this repo:

Branches

  1. 07bdfaa libipp: IncludeBraces LSC by George Burgess IV · 3 days ago main
  2. 5b6d090 step 1 of adding `InsertBraces: true` to global clang-format by George Burgess IV · 7 weeks ago
  3. 18b8dd8 Update print and scan OWNERS by Benjamin Gordon · 1 year, 6 months ago
  4. f2640e2 Add missing metadata for printing projects by Benjamin Gordon · 1 year, 6 months ago
  5. b5ff5d3 libipp: Update documentation about Frame class by Piotr Pawliczek · 1 year, 7 months ago

libipp

What is this?

General C++ library for building and parsing IPP frames. IPP stands for Internet Printing Protocol and is defined in several documents. This implementation is based mainly on the following sources:

How to use it?

All required C++ classes, types and functions are declared in ipp namespace.

IPP frames are sent/received as a payload of HTTP POST requests/responses. This library helps to build and parse raw IPP frames, but does not support the HTTP protocol. You have to use some other library to process HTTP packages, like libbrillo or libcurl. You can also dump a raw IPP frame to a file and send it from the command line with curl, e.g.:

curl -X POST "http://my.server:631/mypath" --header "Content-Type: application/ipp" --data-binary @ipp.frame

Then obtained response can be read from the file and parsed by libipp.

Documentation conventions

In this documentation, the following typographical conventions are used:

  • boldface denotes entities defined in the IPP specifications (see the links mentioned above);
  • italics indicates a name of a library or a (shell) command;
  • monospace is used to mark entities from the source code.

Link to documentation