TCP Client

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

TCP Client

1,499 次查看
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,486 次查看
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,370 次查看
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 项奖励
回复