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

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

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

ソリューションへジャンプ
788件の閲覧回数
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

ラベル(1)
タグ(3)
1 解決策
558件の閲覧回数
Luis_Garabo
NXP TechSupport
NXP TechSupport
3 返答(返信)
558件の閲覧回数
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 件の賞賛
返信
558件の閲覧回数
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 件の賞賛
返信
559件の閲覧回数
Luis_Garabo
NXP TechSupport
NXP TechSupport

Hi Handy,

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

Regards,

Garabo