Dear Sir,
I use NDK with 6437 EVM to implement some ethernet application.
I use the following code to create 2 network tasks, one is for sending video data, one is for receiving command.
do
{
rc = NC_NetStart( hCfg, NetworkOpen, NetworkClose, NetworkIPAddr );
} while( rc > 0 );
static void NetworkOpen()
{
hTCPServer = TaskCreate (FrameSender, "FrameSender", OS_TASKPRINORM, OS_TASKSTKNORM, 0, 0, 0 );
hCMDServer = TaskCreate (cmdsrv, "cmdsrv", OS_TASKPRINORM, OS_TASKSTKNORM, 0, 0, 0 );
}
static void NetworkClose()
{
TaskDestroy (hTCPServer);
TaskDestroy (hCMDServer);
}
I connect to FrameSender task first, the task will keep sending video data.
Then I connect the cmdsrv task. But when I do this, the FrameSender task will be stoped and won't send video data anymore.
Can you tell me how to create 2 network tasks at the same time? Each task has it's own port, and won't interfere each other.
Thank you!!
Best Regards,
Eric Fang