135 Commits (39df7d048c93cf1ef064d64ae54d8029efb40520)

Author SHA1 Message Date
goldsimon 0030d1ade5 task #10139 (Prefer statically allocated memory): converted mbox and semaphore functions to take pointers to sys_mbox_t/sys_sem_t; converted sys_mbox_new/sys_sem_new to take pointers and return err_t; task #7212: Add Mutex concept in sys_arch (define LWIP_COMPAT_MUTEX to let sys.h use binary semaphores instead of mutexes - as before) 16 years ago
goldsimon 2d1631792a struct netconn.socket is only used with LWIP_SOCKET; added comments 16 years ago
goldsimon 306f2203fa Fixed bug #22110 (recv() makes receive window update for data that wasn't received by application); added function-like macros to correctly access/change conn->recv_timeout and conn->recv_bufsize 16 years ago
goldsimon a84590273d Merge 3 u8_t for netconn-internal status into one u8_t 'flags' to prevent waisting memory when adding more flags 16 years ago
goldsimon 5d360a6711 Replaced struct ip_addr by typedef ip_addr_t to make changing the actual implementation behind the typedef easier. 16 years ago
goldsimon 855dcadf7a Added except set support in select (patch #6860) 16 years ago
goldsimon e58f4c567a Add non-blocking support for connect (partly from patch #6860) plus many cleanups in socket & netconn API 16 years ago
goldsimon 32c16fad42 igmp related: renamed netif pointers from 'interface' to 'netif' to not use keywords (or at least my editor highlights it as one...) 16 years ago
goldsimon 04a8b0f85d Added TCP_SNDQUEUELOWAT corresponding to TCP_SNDLOWAT and added tcp_sndqueuelen() - this fixes bug #28605 16 years ago
goldsimon e678e1bdcb bug #28659: Missing casts 16 years ago
goldsimon dbcce3a4be bug #26523: Compiler Warnings 16 years ago
goldsimon 82318c0ef1 Fixed bug #28651 (tcp_connect: no callbacks called if tcp_enqueue fails) both in raw- and netconn-API 16 years ago
goldsimon 52389fc09a Fixed bug #27316 (netconn: Possible deadlock in err_tcp) by using sys_mbox_trypost in err_tcp 16 years ago
goldsimon 34139606ca task #10102: "netconn: clean up conn->err threading issues" by adding error return value to struct api_msg_msg 16 years ago
goldsimon 97f797e859 do_connect(): set conn->err to an error if conn->pcb is NULL 16 years ago
goldsimon 9521f54741 Another fix for bug #28562: Segfault @ err_tcp 16 years ago
goldsimon 0e38a52edc Again: Fixed bug #26672 (close connection when receive window = 0) by correctly draining recvmbox/acceptmbox 16 years ago
goldsimon 533e6b5f8d Fixed bug #26672 (close connection when receive window = 0) by correctly draining recvmbox/acceptmbox 16 years ago
goldsimon 8a81cb4ba0 Fixed bug #27955: netconn_close may nether return when LWIP_TCPIP_CORE_LOCKING enabled 17 years ago
goldsimon a9cbdc141b patch #6888: Patch for UDP Netbufs to support dest-addr and dest-port 17 years ago
goldsimon 8a7c1c4926 do_connect: LWIP_ERROR on invalid/disabled protocol 17 years ago
goldsimon cc4b968f0a Fixed bug #27114: Missing #include in api_msg.c on LWIP 1.3.1RC1; added include <string.h> 17 years ago
fbernon ce5699f41b minor changes: typos and coding style 17 years ago
kieranm 1eee0be951 BUG23240 use signed counters for recv_avail and don't increment 17 years ago
kieranm 2b87f899ab BUG26722: initialise netconn write variables in netconn_alloc 17 years ago
goldsimon 9d5bf57dd9 fixed bug #25695: Segmentation fault in do_writemore() 17 years ago
goldsimon 14cb4eb735 fixed arguments of socket functions to match the standard; converted size argument of netconn_write to 'size_t' for that; fixed some warnings 17 years ago
goldsimon 8c7705bbf9 added configurable default valud for netconn->recv_bufsize: RECV_BUFSIZE_DEFAULT (fixes bug #23726: pbuf pool exhaustion on slow recv()) 17 years ago
goldsimon b0c61ffbb1 Reverted last changes since it's wrong when sizeof(int)==2... 18 years ago
goldsimon aa568727d1 patch #6699: fixed some warnings on platform where sizeof(int) == 2 18 years ago
jifl 1f3fe200df Correct commented description of do_recv(). 18 years ago
goldsimon ae2d5266c5 removed invalid call to tcp_connect() in do_close_internal() 18 years ago
goldsimon 99db244124 fixed bug #23847: do_close_internal references freed memory 18 years ago
fbernon 7774b57a1c api_msg.c: fix wrong mailbox invalidate (NULL was used instead of SYS_MBOX_NULL). Spoted by Silas Boyd-Wickizer. 18 years ago
goldsimon 90cb4b4e09 Corrected comment in do_writemore() 18 years ago
fbernon afcf49ad3a api_msg.c: minor change, fix warning. 18 years ago
fbernon a2f1892480 api_msg.c: fix the netbuf::addr field to point on the ip_src on the pbuf's copy (about bug#22530). 18 years ago
fbernon 552106e2a4 api_msg.c: Fix bug #22530 "api_msg.c's recv_raw() does not consume data". 18 years ago
fbernon 7518acf634 rawapi.txt, api_msg.c, tcp.c, tcp_in.c, tcp.h: changes for task #7675 "Enable to refuse data on a TCP_EVENT_RECV call". Important, behavior changes for the tcp_recv callback (see rawapi.txt). 18 years ago
fbernon 55bcc20deb tcpip.h, tcpip.c, api.h, api_lib.c, api_msg.c, sockets.c: replace the field netconn::sem per netconn::op_completed like suggested for the task #7490 "Add return value to sys_mbox_post". 18 years ago
fbernon 9906e4c984 api_msg.c, opt.h: replace DEFAULT_RECVMBOX_SIZE per DEFAULT_TCP_RECVMBOX_SIZE, DEFAULT_UDP_RECVMBOX_SIZE and DEFAULT_RAW_RECVMBOX_SIZE (to optimize queues sizes), like suggested for the task #7490 "Add return value to sys_mbox_post". 18 years ago
fbernon bceff76c70 tcpip.h, tcpip.c, api.h, api_lib.c, api_msg.c, sockets.c: replace the field netconn::mbox (sys_mbox_t) per netconn::sem (sys_sem_t) for the task #7490 "Add return value to sys_mbox_post". 18 years ago
goldsimon a41f113b8f Added function netconn_free(), which deallocates all mboxes and frees the netconn (to be used from different places) - the PCB is not freed! 18 years ago
fbernon 5941b3c86e sys_arch.txt, api.h, api_lib.c, api_msg.h, api_msg.c, tcpip.c, sys.h, opt.h: Introduce changes for task #7490 "Add return value to sys_mbox_post" with some modifications in the sys_mbox api: sys_mbox_new take a "size" parameters which indicate the number of pointers query by the mailbox. There is three defines in opt.h to indicate sizes for tcpip::mbox, netconn::recvmbox, and for the netconn::acceptmbox. Port maintainers, you can decide to just add this new parameter in your implementation, but to ignore it to keep the previous behavior. The new sys_mbox_trypost function return a value to know if the mailbox is full or if the message is posted. Take a look to sys_arch.txt for more details. This new function is used in tcpip_input (so, can be called in an interrupt context since the function is not blocking), and in recv_udp and recv_raw. 19 years ago
fbernon 9c4daa312d Minor changes in lwip folder: fix some warnings, coding style, and rename "internal" netconn_alloc function. 19 years ago
fbernon 32005617b9 rawapi.txt, api.h, api_lib.c, api_msg.h, api_msg.c, sockets.c, tcp.h, tcp.c, tcp_in.c, init.c, opt.h: rename backlog options with TCP_ prefix, limit the "backlog" parameter in an u8_t, 0 is interpreted as "smallest queue", add documentation in the rawapi.txt file. 19 years ago
goldsimon 1ed34774c8 tcp.h, opt.h, api.h, api_msg.h, tcp.c, tcp_in.c, api_lib.c, api_msg.c, sockets.c, init.c: task #7252: Implement TCP listen backlog: Warning: raw API applications have to call 'tcp_accepted(pcb)' in their accept callback to keep accepting new connections. 19 years ago
goldsimon 48e62e25e9 sys.h, api_lib.c, api_msg.c, sockets.c: fix bug #21698: "netconn->recv_avail is not protected" by using new macros for interlocked access to modify/test netconn->recv_avail. 19 years ago
fbernon 2b54da5070 api_msg.c, err.h, err.c, sockets.c, dns.c, dns.h: replace "enum dns_result" by err_t type. Add a new err_t code "ERR_INPROGRESS". 19 years ago
goldsimon 113a52d091 fix bug #21656 (recvmbox problem in netconn API): always allocate a recvmbox in netconn_new_with_proto_and_callback. For a tcp-listen netconn, this recvmbox is later freed and a new mbox is allocated for acceptmbox. This is a fix for thread-safety and allocates all items needed for a netconn when the netconn is created. 19 years ago