If SlaveThreadCount = 0, you have the Master. If SlaveThreadCount > 0, you have the Slave. Jul 9, 2013