不多说了:UnixNetworkProgrammingVolume1,ThirdEditionTheSocketsNetworkingAPI源代码