simple chat apps via tcp (school assignment)