refine log
extract getipbyfqdn
implement optional listening address
Implemented htonll
fix bugs on byte order and bit order, tested on little endian only.