June 13, 2012
12:19 p.m.
Mark Smith wrote:
Hi :),
Does anyone know if there's a way to detect if a Zinc Server doesn't bind to a port, (probably because there's already a server listening on that port), and signal an error?
Thanks a lot,
Mark
As a backup plan... why not from one code path (perhaps requiring a fork) 1. start Zinc Server 2. generate random magic number 3. connect to server as a client requesting magic number. 4. check returned magic number matches the one from (2)