create socket.c independent of main.c
create socket.c independent of main.c