basic server and client chat program only works in windows