Hi Ti Folks,
I am stuck in understanding this NDK TCP/IP Daemon within a Task.
I have created a task using Task_create with a stack size of 4096 bytes
and within that task i am using this function
extern HANDLE DaemonNew( uint Type, IPN LocalAddress, uint LocalPort,int (*pCb)(SOCKET,UINT32), uint Priority,uint StackSize, UINT32 Argument, uint MaxSpawn );
and i am using following values [Task Priority as Normal and Stack size as normal] and they correspond to below values
#define OS_TASKPRINORM_DEF 5
#define OS_TASKSTKNORM_DEF 4096
If you look at above lines, i am creating a task with stack size of 4096 bytes within which i am creating a NDK daemon which is taking exactly 4096 bytes as stack size.
my questions on above.
1. where does the ndk daemon get the stack allocated from? [is it from global source or from the Task itself..please clarify]
Thanks
RC Reddy