TCP Client

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

TCP Client

1,506件の閲覧回数
jill1
Contributor I

hello, 

I'm trying to implement a client code using netconn. It's working but I can't use the same port twice. When I compile the code for the first time the connection works fine. But the second I get retransmissions. I think I have to close/free the port from my server (linux netcat server) somehow. I already close, disconnect and delete my netconn socket.

Thanks for your help.

Jill

0 件の賞賛
返信
2 返答(返信)

1,493件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi Jill:

Could you please let me know how to reproduce your issue on my side? Your hardware and software, or a simple project  for me to reproduce it?  Thanks

 

Regards

Daniel

0 件の賞賛
返信

1,377件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi

 

Because there's an active TCP connection on that port. The client and server  are still tring to gracefully close the connection.

I tried on my side with force-close the connection with "netconn_close"  + "netconn_delete",  I can get the right result.

 

Regards

Daniel

0 件の賞賛
返信