client_server application with nonblocking mode