Go to the source code of this file.
Defines | |
#define | CC_STRING "AVRGCC" |
Functions | |
void | ProcessRequests (FILE *stream) |
int | main (void) |
Variables | |
prog_char | vbanner_P [] = "\n\nTCP Server Sample - Nut/OS %s - " CC_STRING "\n" |
prog_char | banner_P [] = "200 Welcome to tcps. Type help to get help.\r\n" |
prog_char | help_P [] |
prog_char | thread_intro_P [] = "220 List of threads with name,state,prio,stack,mem,timeout follows\r\n" |
prog_char | timer_intro_P [] = "221 List of timers with ticks left and interval follows\r\n" |
prog_char | mem_fmt_P [] = "210 %u bytes RAM free\r\n" |
void ProcessRequests | ( | FILE * | stream | ) |
Definition at line 138 of file tcps.c.
References banner_P, DEADBEEF, fflush(), fgets(), fprintf(), fprintf_P, fputs(), fputs_P, help_P, mem_fmt_P, NutHeapAvailable(), nutThreadList, nutTimerList, strchr(), strlen(), strncmp(), _NUTTHREADINFO::td_memory, _NUTTHREADINFO::td_name, _NUTTHREADINFO::td_next, _NUTTHREADINFO::td_priority, _NUTTHREADINFO::td_sp, _NUTTHREADINFO::td_state, _NUTTHREADINFO::td_timer, TDS_READY, TDS_RUNNING, TDS_SLEEP, TDS_TERM, thread_intro_P, timer_intro_P, _NUTTIMERINFO::tn_next, _NUTTIMERINFO::tn_ticks, and _NUTTIMERINFO::tn_ticks_left.
int main | ( | void | ) |
Definition at line 255 of file tcps.c.
References _fdopen(), _fileno(), _ioctl(), _CONFNET::cdn_ip_addr, _CONFNET::cdn_mac, confnet, DEV_DEBUG, DEV_DEBUG_NAME, DEV_ETHER, DEV_ETHER_NAME, fclose(), freopen(), inet_addr(), inet_ntoa(), memcpy(), NutDhcpIfConfig(), NutNetIfConfig(), NutNetLoadConfig(), NutNetSaveConfig(), NutRegisterDevice(), NutTcpAccept(), NutTcpCloseSocket(), NutTcpCreateSocket(), NutTraceHeap(), NutTraceOs(), NutTracePPP(), NutTraceTcp(), NutVersionString(), printf, printf_P(), ProcessRequests(), puts, stdout, UART_SETSPEED, and vbanner_P.
prog_char vbanner_P[] = "\n\nTCP Server Sample - Nut/OS %s - " CC_STRING "\n" |
prog_char banner_P[] = "200 Welcome to tcps. Type help to get help.\r\n" |
prog_char help_P[] |
prog_char thread_intro_P[] = "220 List of threads with name,state,prio,stack,mem,timeout follows\r\n" |
prog_char timer_intro_P[] = "221 List of timers with ticks left and interval follows\r\n" |