read messages from client

Signed-off-by: Mattias Andrée <maandree@operamail.com>
m

Signed-off-by: Mattias Andrée <maandree@operamail.com>
derp

Signed-off-by: Mattias Andrée <maandree@operamail.com>
we should of cause use recv and not read

Signed-off-by: Mattias Andrée <maandree@operamail.com>
handle closing of sockets by peer

Signed-off-by: Mattias Andrée <maandree@operamail.com>
store the socket's state

Signed-off-by: Mattias Andrée <maandree@operamail.com>
add todo

Signed-off-by: Mattias Andrée <maandree@operamail.com>
use sig_atomic_t for running

Signed-off-by: Mattias Andrée <maandree@operamail.com>
add version when marshalling

Signed-off-by: Mattias Andrée <maandree@operamail.com>