write a networkhandler for the client server to handle messages, and add to threadpool a "processMessageRunnable" to handle the message