[PD] Different socket implementation in Windows and Linux