From ctian at common-lisp.net Mon Oct 4 12:04:05 2010 From: ctian at common-lisp.net (Chun Tian (binghe)) Date: Mon, 04 Oct 2010 08:04:05 -0400 Subject: [usocket-cvs] r568 - usocket/trunk Message-ID: Author: ctian Date: Mon Oct 4 08:04:01 2010 New Revision: 568 Log: Documentation string of +max-datagram-packet-size+ added. Modified: usocket/trunk/usocket.lisp Modified: usocket/trunk/usocket.lisp ============================================================================== --- usocket/trunk/usocket.lisp (original) +++ usocket/trunk/usocket.lisp Mon Oct 4 08:04:01 2010 @@ -11,7 +11,18 @@ (defparameter *auto-port* 0 "Port number to pass when an auto-assigned port number is wanted.") -(defconstant +max-datagram-packet-size+ 65507) +(defconstant +max-datagram-packet-size+ 65507 + "The theoretical maximum amount of data in a UDP datagram. + +The IPv4 UDP packets have a 16-bit length constraint, and IP+UDP header has 28-byte. + +IP_MAXPACKET = 65535, /* netinet/ip.h */ +sizeof(struct ip) = 20, /* netinet/ip.h */ +sizeof(struct udphdr) = 8, /* netinet/udp.h */ + +65535 - 20 - 8 = 65507 + +(But for UDP broadcast, the maximum message size is limited by the MTU size of the underlying link)") (defclass usocket () ((socket From ctian at common-lisp.net Tue Oct 5 06:20:54 2010 From: ctian at common-lisp.net (Chun Tian (binghe)) Date: Tue, 05 Oct 2010 02:20:54 -0400 Subject: [usocket-cvs] r569 - usocket/trunk Message-ID: Author: ctian Date: Tue Oct 5 02:20:54 2010 New Revision: 569 Log: Update TODO Modified: usocket/trunk/TODO (contents, props changed) Modified: usocket/trunk/TODO ============================================================================== --- usocket/trunk/TODO (original) +++ usocket/trunk/TODO Tue Oct 5 02:20:54 2010 @@ -1,4 +1,7 @@ -- Fix condition systems (make all implementation generate same error) -- Add INET6 support. - -For more TODO items, see http://trac.common-lisp.net/usocket/report. +- Fix condition systems (making all implementation generate same error) +- Add INET6 support. +- UDP support for Digitool MCL +- IOlib backend +- SOCKET-OPTION (at least :BROADCAST and :READ-TIMEOUT) + +For more TODO items, see http://trac.common-lisp.net/usocket/report.