socket programming

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,231件の閲覧回数
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.



ラベル(1)
0 件の賞賛
返信
1 解決策
949件の閲覧回数
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 件の賞賛
返信
2 返答(返信)
949件の閲覧回数
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?


950件の閲覧回数
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 件の賞賛
返信