Server implemented with threading, client API in place