add serv and client code for demonstrate using api sockets and select