Is it possible to run both a server and client in one executable?

ØMQ – The Guide (Free)

ZeroMQ: Fixing the World

ØMQ - The Guide