parsing fixed

Fixed the parsing problems, everything reads fine now.  There are redundancies in the client and server functions. Both functions are performing network initializations.  I suggest moving all networking initializations into their own function and then passing the returned variables to the client and server functions when the threads are created.  Also note that bzero and bcopy are both deprecated and should be replaced with memset() and memcpy().