This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How do I get more than 1 active TCP/IP connection running simultaneously using NDK v2.00?

Other Parts Discussed in Thread: OMAP-L138, OMAPL138

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

My system specs:

Target: C674x core on Zoom OMAP-L138 eXperimenter kit

OS: Microsoft Windows XP Professional w/ Service Pack 3

Code Composer Studio Version: 4.2.1.00004

DSP/BIOS Version: 5.41.07.24

Code Generation tools: TI v7.0.3

NDK version: 2.0 w/ OMAPL138 NSP version 01.00.00.01

Description of Problem:

I am using  the "Network Client Example Application" as the base for a new project.  This example application has several servers running on the target.  When I create an active connection to one of the servers, the target blocks any other attempted connections until the 1st connection has been terminated.  The end goal is to have 4 active clients connected to the target simultaneously. 

I specifically have 2 data servers running on the DSP.  Each data server creates a TCP listen socket on a unique port.  I am trying to connect 1 client to each data server, but cannot since I am afforded only 1 active connection to the target at a time.

Please help,

Conrad

  • Update....

    I have been able to use the Server Daemon to get a little further.  I have code that creates thread task below:

    hData = DaemonNew( SOCK_STREAM, 0, 1000, dtask_tcp_datasrv, OS_TASKPRINORM, OS_TASKSTKNORM, 0, 4 );

    The last argument is "MaxSpawn" which is defined as the maximum number of callback function instances.  Right now I have (4) as that argument which means to me that I should be able to run 4 data sessions simultaneously.  For some reason, I am only able to run 2 sessions on the same port.  I do not know why.

    Thanks,

    Conrad

  • Alright, figured out the problem... 

    I apparently was getting an "SBNew: Buffer OOM" error message when I tried opening a new client connection.  That error indicated that when a new client tried to connect, the server couldn't create a new  thread due to a lack of DDR heap space.  The solution is to go into the tcf file and doube or triple your DDR heap size.

    Conrad