Chat client using socket programming in C