Discussion Forum

check space before tcp_get_buf call

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
ing. L. S. van der Heeden
Posted
16-Aug-2006 14:18 GMT
Toolset
ARM
New! check space before tcp_get_buf call

I use the RTX TCP/IP stack with limited RAM. So the memory pool for the stack is very limited. To protect my application form running out of memory (a call to sys_error()) I will now the available size for my transmit buffer. It is also okey if i have a different function for tcp_get_buf() who return NULL or something like that when there is no space available. Anyone a suggestion how to solve this problem?

Next Thread | Thread List | Previous Thread Start a Thread | Settings