A generic llibrary to exchange data over port.