P2PNet is computer network layer that allows to transfer messages between multiple computers over the network. It is designed to be modular, so you can communicate not only using network, but using any interface you want.
This library is only called a library. In fact it is a framework, that consists of two parts: library and daemon.
Daemon starts with system and provides all peer-2-peer communications, cryptography and database management.
Library is used to link it with your application and provides API.
They are connected via Unix sockets on Unix-like systems and TCP sockets on Windows systems.