TCP Client

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

TCP Client

1,515 Views
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 Kudos
Reply
2 Replies

1,502 Views
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 Kudos
Reply

1,386 Views
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 Kudos
Reply