enable SwapServer running in applicatino thread (use 'poll()')