tcp server logic modify, and #pragma pack() portable