socket programming

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

socket programming

跳至解决方案
1,233 次查看
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 解答
951 次查看
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 回复数
951 次查看
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?


952 次查看
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 项奖励
回复