Complete support for socket based sending and listening.

Signed-off-by: Andras Mitzki <mitzkia@gmail.com>