Home > Back-end > About the ioctlsocket (sock, FIONREAD, & packet_length) problem
About the ioctlsocket (sock, FIONREAD, & packet_length) problem
Time:10-04
The ioctlsocket (SCK FIONREAD, & amp; LngBytes); Function returns 0, said control of the socket is successful, but why lngBytes value is always zero (i.e., using see client does have caught a data)
CodePudding user response:
The ioctlsocket (SCK FIONREAD, & amp; LngBytes); Can you to deserve this SCK parameters? Maybe you caught the data, not the socket