Server seems to work now but the client.c is broken because wrtbuffer.toString().trim() is not working since wrtbuffer is a char array. Got to go though