a server lib include network, database and multi thread