additions

nim.c is the client
see nim_protocol_tools.c, socket_IO_tools.c