socked bind moved to main process, cause port number is returned
minor refactor
client/server communication v1