Diag accept() failed, error 0x1704
InitDiagSocket: Created the stream socket 536899428
Failed to bind the diag stream socket - 0x1633
diag listen() failed - 0x1704
I am receiving above error after shutting down socket using shutdown() and creating again the socket.
Solved! Go to Solution.
I used FLAG_ABORT_CONNECTION ,My problem is solved .
I had to shutdown the socket used by accept() to create duplicate socket and I was deleting only the socket obtained by accept().
Synopsis
uint_32 shutdown(
uint_32 socket,
uint_16 how)
Parameters
socket [in] — Handle of the socket to shut down.
how [in] — One of the following (see description):
FLAG_CLOSE_TX
FLAG_ABORT_CONNECTION
What "how" parameter you use?
I used FLAG_ABORT_CONNECTION ,My problem is solved .
I had to shutdown the socket used by accept() to create duplicate socket and I was deleting only the socket obtained by accept().