add sockets connection and receive data callbacks

Signed-off-by: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>