xiangqianyong

Results 2 comments of xiangqianyong

call WSAGetLastError and then set errno correspondingly

in windows, socket return type is SOCKET, and in win64, SOCKET is 64bits. but in libmodbus, socket is cast to int, such as: int s = socket(....)