Commit Graph

223 Commits

Author SHA1 Message Date
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