more updates on communication between java server and c client. this is too much fun.