Read-only gsubtree of platform2/libipp/ code

Clone this repo:

Branches

  1. 18b8dd8 Update print and scan OWNERS by Benjamin Gordon · 1 year, 2 months ago main
  2. f2640e2 Add missing metadata for printing projects by Benjamin Gordon · 1 year, 2 months ago
  3. b5ff5d3 libipp: Update documentation about Frame class by Piotr Pawliczek · 1 year, 3 months ago
  4. d9a5f04 libipp: Add missing unit tests for the builder by Piotr Pawliczek · 1 year, 3 months ago
  5. 7c639fb libipp: Add missing unit tests for the parser by Piotr Pawliczek · 1 year, 4 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