socket disconnect shutdown reconnect error

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

socket disconnect shutdown reconnect error

876件の閲覧回数
davidsa
Contributor I

When a socket is disconnected either through an error or by software, and the socket is shutdown

how do we reuse the same socket connection. "Reuse the socket address/memory"?

In Linux there is a setsockop(sockert, SOL_SOCKET, SO_REUSEADDR, opt,sizeof(opt))

What is the MQX equivalent for SO_REUSEADDR?

When trying to bind() to the same socket an error is returned.

タグ(2)
0 件の賞賛
返信
3 返答(返信)

612件の閲覧回数
maciejwdowiarz-
Contributor III

Hi,

Have use found any solution in MQX 4.1 for socket reusage ?

0 件の賞賛
返信

612件の閲覧回数
davidsa
Contributor I

No this question was never answered and currently I have avoided this issue in my software

but will need to eventually addressed the potential problem.

David

0 件の賞賛
返信

612件の閲覧回数
maciejwdowiarz-
Contributor III

I'm porting Linux application into MQX and I'm experiencing shortage of socket options. SO_REUSEADDR is one of them.

I suppouse the only walkaround is to call shutdown() and later recreate new socket...

0 件の賞賛
返信