Added send and receive methods from and to client

Signed-off-by: Thibaut Quentin <thibaut.quentin@laposte.net>