TCP/UDP Chat server for Network Programming class