This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Use TCPNet with RTX kernel

I want to use the TCPNet with RTX Kernel, but I have one question about it.

In www.keil.com/.../rlarm_tn_using_withkernel.htm
they say that tcp_poll_task is the lowest priority and in this task there is the main_() function.
Is it the intention that all my code to check if something came in and control it comes in here???

kind of like this: (but my switch would then be main_() )

void tcp_poll_task (void) __task { /* Main Thread of the TcpNet. This task should have */ /* the lowest priority because it is always READY. */ dhcp_tout = DHCP_TOUT; while (1) { main_TcpNet(); dhcp_check ();

switch (soc_state){ case 0: //nog geen verbinding => socket aanvragen en verbinding maken tcp_soc = tcp_get_socket (TCP_TYPE_CLIENT, 0, 120, tcp_callback); //2 minuten en dan timeout indien kanaal idle soc_state = 999; //niet bestaande soc_state geven zodat er gewacht wordt op callback functie case 1: //verbinding gemaakt en klaar om data te versturen }

os_tsk_pass(); }
}

Am I right here, or have I misinterpreted something?