I need to use 2 Tcp sockets (one for received orders, and one to send datas)
Even i group all my tcp functions in a single task (with lowest priority), i can't executes other tasks.
I use a tick_timer task as in example (with highest priority) :
__task void tick_timer (void) { os_itv_set (10); while (1) { os_itv_wait (); timer_tick (); } }
and task_tcp with:
while (1) { main_TcpNet (); send_data(); os_tsk_pass (); }
Do i use os_tsk_pass() in all other task ?
I guess it's not possible, since as it said in :
http://www.keil.com/support/man/docs/rlarm/rlarm_tn_using_withkernel.htm
"Functions are not reentrant. This means they must not be interrupted and called again from another task. All TCPnet-related functionality should be collected in a single networking task"
So, i don't know where i could put this fonction send_data().
Sorry for the wrong guessing.
In the below thread:
www.keil.com/.../
Franc Urbanc said ->
Take a HTTP_Demo example as a reference. It has a several targets, one is configured to be used with RTX.