adding connection.c for sockets