Commit Graph

223 Commits

Author SHA1 Message Date
goldsimon 111004caa9 Fixed compilation for CGI, SSI and DYNAMIC_HEADERS, renamed variables, added comments 2010-03-18 06:31:18 +00:00
goldsimon 9ae87c50d2 Fixed warning about unused local variable in release mode 2010-03-15 09:45:20 +00:00
goldsimon 05c30ba213 Speed up generating big files 2010-03-14 13:25:49 +00:00
goldsimon 3a30b8350d Use tcp_mss(pcb) instead of pcb->mss; only call tcp_output from http_poll 2010-03-13 15:02:22 +00:00
goldsimon 3f79779a0f Added connection timing, changed default definition of HTTP_IS_DATA_VOLATILE() to not copy data when sending from unmodified files 2010-03-12 19:26:57 +00:00
goldsimon b83a115953 Fixed compilation warnings (missing casts, includes, etc.) 2010-03-10 11:27:11 +00:00
goldsimon e97f6e1909 Improved code size & memory footprint when LWIP_HTTPD_SSI==0 && LWIP_HTTPD_DYNAMIC_HEADERS==0 2010-03-08 18:58:21 +00:00
goldsimon 91cd7becdf bug #29105: Review printf formatters 2010-03-08 17:10:12 +00:00
goldsimon 8cd0218330 Added test for multiple selects (disabled by default) 2010-03-07 18:45:27 +00:00
goldsimon 5196e5ba4f Copy errno to a local variable for debugging 2010-03-06 12:14:44 +00:00
goldsimon 71c643ae61 shell_main: use netconn_recv_tcp_pbuf() instead of netconn_recv() 2010-03-06 12:13:46 +00:00
goldsimon 0116d1c3a1 Fixed code-violation that checkmycode.org warns about :-) 2010-03-04 17:45:37 +00:00
goldsimon cb7f0de9f8 Fixed bug #29068: Fixed memory leak in ping_recv for PING_USE_SOCKETS==0 2010-03-04 15:48:21 +00:00
goldsimon 6bb0cded4f For LWIP_HTTPD_DYNAMIC_HEADERS==1, skip get_http_headers() if http_header_included 2010-02-24 11:51:05 +00:00
goldsimon 2a41542edb LWIP_HTTPD_DYNAMIC_HEADERS defaults to 0 2010-02-20 17:48:57 +00:00
goldsimon 0b541d8f0a HTTPD_DEBUG defaults to off 2010-02-20 17:48:43 +00:00
goldsimon 1f93022b83 Moved some parts of the HTTP-header related code to a new file to share it between httpd.c and makefsdata.c, regenerated fsdata.c 2010-02-19 16:20:25 +00:00
goldsimon 4ec673b17d Merged httpd from TI Luminary: added basic SSI and CGI support, added support for dynamic HTTP header generation 2010-02-17 21:19:17 +00:00
goldsimon 44374b26da typo: 609 -> 509 2010-02-17 16:51:45 +00:00
goldsimon 670e347eed added missing newline before EOF 2010-02-17 16:48:34 +00:00
goldsimon 56d3d5c39a help_msg is split into 2 strings to prevent exceeding the C89 maximum length of 509 per string 2010-02-17 16:48:23 +00:00
goldsimon a50dd0cc7b Use new macro ip_addr_copy 2010-02-14 12:44:48 +00:00
goldsimon 2027a11331 Use the new fcntl(), too 2010-02-13 15:56:53 +00:00
goldsimon 8f62d0525c Fixed packing of struct rtp_hdr 2010-02-13 14:47:41 +00:00
goldsimon 8a8f2f762c Added test for closing socket in nonblocking connect 2010-02-12 17:00:05 +00:00
goldsimon 5397ecfbca Added comment 2010-02-12 16:59:50 +00:00
goldsimon a139f72602 Added a function to test recv timeout and correct closing 2010-02-09 20:13:32 +00:00
goldsimon fc7b8e1fc2 Add printf for feedback when all tests are done 2010-02-09 18:39:19 +00:00
goldsimon e46c1c88e9 Added guard to only compile if LWIP_SOCKET is enabled 2010-02-09 17:51:11 +00:00
goldsimon c1c78c4c9e Added guard to only compile if LWIP_NETCONN is enabled 2010-02-09 17:50:57 +00:00
goldsimon b5212c5d60 Don't use C++ comments 2010-02-09 13:18:08 +00:00
goldsimon c4fb6238a0 Support for case insensitiva comparision of NETBIOS_LWIP_NAME 2010-02-05 10:56:47 +00:00
goldsimon a6828003d8 Replaced struct ip_addr by typedef ip_addr_t to make changing the actual implementation behind the typedef easier. 2010-02-04 18:50:12 +00:00
goldsimon 87c6d6324e Check that netconn_new doesn't fail 2010-02-04 17:23:46 +00:00
goldsimon 899ae6a321 Use macros defined in ip_addr.h (some of them new) to work with IP addresses (preparation for bug #27352 - Change ip_addr from struct to typedef (u32_t) - and better code). 2010-02-04 17:23:30 +00:00
goldsimon 880ed2c01e Moved lwip_prvmib.c and private_mib.h from unix/proj/minimal to apps/snmp_private_mib and extended it for write support and usage with memory buffers instead of files to be used under non-posix OSes as an example 2010-02-02 19:39:25 +00:00
goldsimon 103def2a7e Don't use C++ style comments 2010-01-29 23:17:39 +00:00
goldsimon 54870b94ea Added socket example both for users to get started and to ASSERT/test basic socket behavior 2010-01-29 23:13:23 +00:00
goldsimon 003f79774e Graceful shutdown of netconn-httpd on error 2010-01-29 23:11:06 +00:00
goldsimon aa0ae95b4e Adapted to changed inet.h/ip_addr.h/def.h 2010-01-29 08:24:08 +00:00
goldsimon cceacccce6 Adapted to changed inet.h/ip_addr.h/def.h, fixed warnings 2010-01-29 08:22:40 +00:00
goldsimon 185eb9663f Coding style: don't use reserved C++ keywords (since many editors can't differ between a C and a C++ file); bug #28659: Missing casts 2010-01-25 08:21:33 +00:00
goldsimon 892859455c bug #28659: Missing casts 2010-01-25 08:20:46 +00:00
goldsimon 448dd70ced Added raw-api tcp echo server from unix/minimal 2010-01-24 17:12:29 +00:00
goldsimon dbee3cf464 (Experimental) support for echoing typed characters (to see what you typed in telnet), doesn't really work reliably yet... 2010-01-24 13:31:14 +00:00
goldsimon 5af75e5b01 Portability: support "\n" or "\r\n" for newline to correctly print on win32 telnet 2010-01-24 13:30:00 +00:00
goldsimon 566a3ad2ca Fix TCP handling: command doesn't have to be contained in a single packet but remote side has to enter \r or \n to finish a command, this supports the other end being a (hand-typed) telnet session 2010-01-24 13:28:10 +00:00
goldsimon 409e10ca8f bug #26523: Compiler Warnings 2010-01-24 13:26:13 +00:00
goldsimon faf826ad6d bug #26523: Compiler Warnings 2010-01-24 10:09:57 +00:00
goldsimon d20a5e8b29 Fixed warnings and wrong asserts 2010-01-21 07:30:17 +00:00
goldsimon 9b45317f54 Fixed makefsdata portability (don't use backslash in include) 2010-01-20 20:51:05 +00:00
goldsimon 379e17565c Moved 3 apps from unixsim/apps to contrib/apps (since they are by no means unix-specific) 2010-01-20 19:12:26 +00:00
goldsimon a7c23005e7 Use correct #if's for function prototype 2010-01-20 07:39:36 +00:00
goldsimon cfcb3da29f Fixed after changing netconn_recv/_accept 2010-01-20 07:38:10 +00:00
goldsimon afa884b61f remove 'const' from 'int len' -> not necessary 2010-01-18 09:27:46 +00:00
goldsimon 6615f46dd1 Added header file, init function and changed function names 2010-01-13 15:56:56 +00:00
goldsimon 998f076f4b Typo, coding style & missing include 2010-01-13 15:38:50 +00:00
goldsimon 15bfd8f2d4 Don't use C++ style comments 2010-01-07 10:24:31 +00:00
goldsimon 4c733650e6 Adapted to changed timer implementation 2009-12-31 16:24:58 +00:00
goldsimon 9e977b7efc Default setting for PING_USE_SOCKETS was accidentally inverted 2009-12-06 10:01:48 +00:00
goldsimon 4dac3ab5f6 Fixed compiling httpd without user-specified memp-pool 2009-12-05 14:21:01 +00:00
goldsimon c813c2f691 Make socket/raw api decision configurable 2009-12-04 08:12:36 +00:00
goldsimon 4d5a7418a4 Correctly use log levels 2009-11-22 13:15:29 +00:00
goldsimon ad8f9685bd Added chargen.h and use it from chargen.c 2009-11-20 16:18:19 +00:00
goldsimon 815c75c58f Removed accidentally committed test code 2009-11-15 13:17:33 +00:00
goldsimon 4ebe4ff176 Added a more complete SNTPv4 client that conforms to RFC 4330 and uses the raw api. 2009-11-15 12:52:01 +00:00
goldsimon 9e338b8ff2 Restructured http: made more robust, added logging, removed printf, commented, prepared for files that don't include HTTP response header 2009-11-01 21:16:46 +00:00
goldsimon c43d077828 Add support to files that don't include HTTP response header 2009-11-01 21:00:43 +00:00
goldsimon b9113fe615 Added documentation 2009-11-01 20:58:22 +00:00
goldsimon 1a265b5373 Update fsdata (generated by makefsdata) 2009-11-01 19:23:12 +00:00
goldsimon 268bb23f11 First parse subdirectories, then files (to get main directory to the front of the list) 2009-11-01 19:22:45 +00:00
goldsimon e4442f02da Added html source files for httpd 2009-11-01 18:30:06 +00:00
goldsimon 5131ebd938 Added support for makefsdata 2009-11-01 18:29:08 +00:00
goldsimon e142aced6f Added makefsdata ported to C (by Jim Pettinato, extended by me) 2009-11-01 18:27:22 +00:00
goldsimon 700de50435 Build this file only if LWIP_SOCKET and LWIP_IGMP are enabled 2009-08-11 14:35:23 +00:00
goldsimon 6ce49364c5 Added many missing includes to <string.h> 2009-08-11 14:34:28 +00:00
goldsimon 726953e7f3 http_accept(): arg is not unused any more, thanks Bill 2009-07-28 18:08:42 +00:00
goldsimon 4a5c399e7d Fixed my last checkin that fixed bug #27117: "httpserver_raw sample does not call tcp_accepted()" accidentally called tcp_accepted() on the connection-pcb, not the listen-pcb 2009-07-28 17:38:30 +00:00
goldsimon 47521ce2bc fixed bug #27117: httpserver_raw sample does not call tcp_accepted() 2009-07-27 15:10:39 +00:00
fbernon 40989aae68 netbios.c: change to enable SOF_BROADCAST option 2009-05-04 08:00:22 +00:00
goldsimon ed8a2adfc7 bug #25798: CharGen example uses calloc and free directly 2009-04-15 19:59:01 +00:00
goldsimon 0f06910f66 Fixed bug #25705 (memory leak in httpserver_raw when aborting connection) 2009-03-01 17:50:06 +00:00
goldsimon 15d75600bb Checked in patch #6760 (ping calculates incorrect checksum) - slightly modified 2009-03-01 17:20:53 +00:00
goldsimon ccb8913d65 Add casts where appropriate to fix conversion warnings 2009-02-18 20:43:32 +00:00
goldsimon b243b97543 Fix unused argument warning 2009-02-18 20:42:53 +00:00
fbernon 73f3e94486 ping.h, ping.c: Minor change: allow to use ping sample with NO_SYS=1. You need to call the ping_send_now() in your application. 2008-07-08 10:11:53 +00:00
goldsimon 754453fd22 Remove unused arg warning 2008-06-25 17:01:50 +00:00
fbernon 85c2c164cc contrib/apps/rtp: add a rtp sample to be able to test lwip's multicast features. 2008-04-26 10:53:32 +00:00
goldsimon d0b500244b ~patch #6459: Changed file name variables to const; changed file size in httpd from u16_t to u32_t to allow file sizes > 64KB (fsdata.c file size is int) 2008-03-27 18:33:18 +00:00
fbernon b2c2a407cf contrib/apps/ping.c: Fix bug #22530 "api_msg.c's recv_raw() does not consume data", and the ping sample (with LWIP_SOCKET=1, the code did the wrong supposition that lwip_recvfrom returned the IP payload, without the IP header). 2008-03-12 10:56:40 +00:00
jifl 19cd8d9d9a * httpd.c: Fix warnings on some systems with mem_malloc. 2008-03-04 16:40:50 +00:00
fbernon f687cc2699 Minor changes: replace directy call to memcpy by MEMCPY macro. 2008-01-26 16:12:16 +00:00
fbernon 343f1561b0 Minor change: add a comment in netio.c application: "See http://www.nwlab.net/art/netio/netio.html to get the netio tool" 2008-01-22 20:53:23 +00:00
fbernon 4bad9aa105 Minor changes: add a return value to ping_send with socket api. 2008-01-06 20:24:56 +00:00
fbernon 0ed511d380 Minor changes in contrib folder: fix some warnings 2008-01-04 22:49:56 +00:00
fbernon 3fb7ec0755 Minor change: update pool.ntp.org IP address 2008-01-03 22:47:17 +00:00
fbernon e3105fd059 Minor changes in ping sample: update "ping_target" before each ping_send. 2007-12-23 14:39:50 +00:00
fbernon f2e2f7bf05 Minor changes: remove tabs 2007-12-14 21:52:55 +00:00
fbernon 907c0967d0 Minor changes: remove tabs 2007-12-02 23:48:41 +00:00
fbernon bf55cf26f1 Minor changes: don't presume the netif_default is always initialized in some apps (avoid crashs). 2007-11-30 16:39:16 +00:00
fbernon 10fedbc940 Minor changes (regroup code in ping_prepare_echo). 2007-11-25 00:57:51 +00:00
goldsimon 15bed9a352 if using with LWIP_SOCKET=0, may not create a new thread as that leads to concurrent access to the core -> use sys_timeout instead!!!
send additional data in ping (some hosts don't answer ping packets without additional data), set ICMP code to 0
2007-11-24 15:00:00 +00:00
goldsimon 7d838ce7de include the new inet_chksum.h 2007-11-16 19:35:03 +00:00
fbernon 8105013eb0 netbios.c, ping.c, sntp.c: minor changes: add comments, add some parameters, some coding style... 2007-11-13 00:58:51 +00:00
fbernon 5478eaae3c Add macro and others definitions to enable to tune ping sender. 2007-11-07 20:52:32 +00:00
fbernon 62910e4248 SNTP client with socket API. Need more settings. 2007-11-06 22:44:11 +00:00
fbernon f2aaab0d86 Drop receive packets in LWIP_SOCKET=1 case if they're not a echo reply, and use SO_RCVTIMEO option to avoid to wait forever. 2007-11-06 19:36:07 +00:00
fbernon 69b8ef3788 Add comment to "ping" sample. 2007-11-04 22:07:42 +00:00
fbernon 6126163ef6 Add ping sample from unix ports to reuse it in any ports. 2007-11-04 21:52:57 +00:00
goldsimon eb0ff133ad Use the api function netconn_err() instead of directly dereferencing the struct netconn. 2007-10-28 14:17:49 +00:00
fbernon 6042cd8598 netbios.c: enable to redefine in lwipopts.h the NETBIOS_LWIP_NAME 2007-10-21 19:08:02 +00:00
goldsimon 530171e23e Using PBUF_RAM instead of PBUF_REF and stack-memory to be safer (and faster with ARP queueing). 2007-10-21 12:46:35 +00:00
goldsimon 9e8b944c7f Forgot one flag in response (AUTHORATIVE) - doesn't work without! 2007-10-21 12:44:29 +00:00
goldsimon dd75189919 Added (and using) defines for flags & ttl, checking NETBIOS_LWIP_NAME vs NETBIOS_NAME_LEN, added file description. 2007-10-21 12:27:33 +00:00
fbernon a8e70b3c20 Add netbios name service sample 2007-10-18 23:09:13 +00:00
goldsimon fe5e7bd541 Moved raw httpd and netio test apps from ports/msvc6 to apps 2007-10-01 20:48:42 +00:00
goldsimon a8aa89dcc2 Minor building fix (if LWIP_SOCKETS, wrong opt include file) 2007-10-01 20:48:01 +00:00
goldsimon 94de15c1ba Added lwip-includes. How could this ever have comiled without these??? 2007-10-01 20:43:28 +00:00
goldsimon aacb973e83 Converted tabs to spaces; fixed indentation 2007-10-01 19:09:28 +00:00
fbernon f1f5c7dd80 Update for new sys_thread_new parameters (see task #7252 : "Create sys_thread_new_ex()" ). Some @todo are integrate to do some suggestions to port maintainers. 2007-09-05 16:48:11 +00:00
fbernon 1a658707d2 Update for new sys_thread_new parameters (see task #7252 : "Create sys_thread_new_ex()" ) 2007-09-05 16:19:04 +00:00
jgrubb f82c5e5d34 Example application of httpserver for netconn/netbuf. 2007-07-13 20:03:25 +00:00
davidhaas 5e3def9494 Added an example program which uses sockets and supports multiple sessions. 2003-04-11 15:21:49 +00:00