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

CodePudding user response:

reference 1st floor xpdavis response:
ioctlsocket (SCK FIONREAD, & amp; LngBytes);
Can you to deserve this SCK parameters? Maybe you caught the data, not the socket

Identified is the SCK, in Linux log with printing

CodePudding user response:

This is to say, if the service side, the socket is a lot of, hit the log this socket is there, maybe it will only be removed to the address and port you print it out and see
  • Related