1f3ee83134
int hello_main(int argc, char *argv[]) { uint32_t i; for(i = 0; i < 65536; i++) { printf("Hello, World!!\n"); } printf("press any key!!\n"); if (getchar()=='t') return 0; else return 1; } When ran in a Telnet session, the "press any key" is not displayed because the tcp session closed unexpectedly with: tcp_input: ERROR: conn->sndseq xx, conn->unacked xx" This is fixed by increasing the width of conn->sent to 32-bits to prevent overflow. From Rony XLN |
||
---|---|---|
.. | ||
arp | ||
devif | ||
icmp | ||
icmpv6 | ||
igmp | ||
iob | ||
local | ||
neighbor | ||
netdev | ||
pkt | ||
route | ||
socket | ||
tcp | ||
udp | ||
utils | ||
.gitignore | ||
Kconfig | ||
Makefile | ||
net_initialize.c | ||
README.txt |
README ====== Directory Structure =================== nuttx/ | `- net/ | +- arp - Address resolution protocol (IPv4) +- devif - Stack/device interface layer +- icmp - Internet Control Message Protocol (IPv4) +- icmpv6 - Internet Control Message Protocol (IPv6) +- iob - I/O buffering logic +- local - Unix domain (local) sockets +- neighbor - Neighbor Discovery Protocol (IPv6) +- netdev - Socket network device interface +- pkt - "Raw" packet socket support +- socket - BSD socket interface +- route - Routing table support +- tcp - Transmission Control Protocol +- udp - User Datagram Protocol `- utils - Miscellaneous utility functions +----------------------------------------------------------------+ | Application layer | +----------------------------------------------------------------+ +----------------------------------------------------------------+ | Socket layer (socket/) | +----------------------------------------------------------------+ +------------++--------------------------------------------------+ | Network || Protocol stacks (arp, ipv6, icmp, pkt, tcp, udp) | | Device |+--------------------------------------------------+ | Interface |+------------------------------------++------------+ | (netdev/) || Network Device Interface (devif/) || Utilities | +------------++------------------------------------++------------+ +----------------------------------------------------------------+ | Network Device Drivers | +----------------------------------------------------------------+