clint and server sock implemented