classification of socket.c functios to client/master