use different return values for different errors

avahi seems to use port 5353, this change makes it easier
to debug port collisions
Merge pull request #23 from mehlis/return-values

use different return values for different errors