Create getsocketopt.c

Get socket options in C for TCP sockets