how to run two tcp connections at the same time using rtcs ?

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

how to run two tcp connections at the same time using rtcs ?

Jump to solution
825 Views
handychandra
Contributor III

Hi,

I was trying to run two tcp connections at the same time using rtcs. When one tcp socket is running and sending data, i create another tcp socket.

But when i tried to connect it, it fails. Are there some settings i should change to run multiple connections ? i have set max tcp connections to unlimited in user_config.h

Labels (1)
Tags (3)
1 Solution
595 Views
Luis_Garabo
NXP TechSupport
NXP TechSupport
3 Replies
595 Views
handychandra
Contributor III

Thanks ! It works now. Are there some sort of formula for determining how many pcb, msg or sockets that i need for some number of connections ??

0 Kudos
Reply
595 Views
Luis_Garabo
NXP TechSupport
NXP TechSupport

Hi Handy,

Good it worked! Well, my formula is: for every socket give 1 pcb and 1 msg. also. If I will need 5 sockets (for instance) then I set 7 as the maximum or start with 7 sockets. You need to leave room for have the TCPIP timers close sockets and that doesn't happen immediately. Timeouts need to run before closing sockets.

Regards,

Garabo

0 Kudos
Reply
596 Views
Luis_Garabo
NXP TechSupport
NXP TechSupport

Hi Handy,

Check this out https://community.freescale.com/message/314032#314032

Regards,

Garabo