main.c -- added data structures for socket con