socket programming

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

socket programming

Jump to solution
921 Views
netra
Contributor IV

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.



Labels (1)
0 Kudos
Reply
1 Solution
639 Views
netra
Contributor IV

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().

View solution in original post

0 Kudos
Reply
2 Replies
639 Views
SortoVaritu
Contributor III

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?


640 Views
netra
Contributor IV

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().

0 Kudos
Reply