/[wanproxy]/trunk/common
ViewVC logotype

Log of /trunk/common

View Directory Listing Directory Listing


Sticky Revision:

Revision 454 - Directory Listing
Modified Thu Jul 29 09:33:48 2010 UTC (5 weeks, 5 days ago) by juli
Print the pretty function name for errors and debug messages.

XXX Maybe this should all be behind !NDEBUG?

Revision 434 - Directory Listing
Modified Sat May 22 11:52:26 2010 UTC (3 months, 2 weeks ago) by juli
Spell 36 UUID_SIZE, and 37 as that + 1.

Revision 433 - Directory Listing
Modified Sat May 22 11:36:56 2010 UTC (3 months, 2 weeks ago) by juli
o) Start keeping a to-do item for immediate XCodec tasks.
o) Add trivial UUID stuff to the XCodec.  This should result in no changes.

Revision 432 - Directory Listing
Modified Sat May 22 11:16:59 2010 UTC (3 months, 2 weeks ago) by juli
Add an untested (only even compile-tested on Mac OS X) UUID wrapper object.

Revision 417 - Directory Listing
Modified Fri Dec 11 23:51:10 2009 UTC (8 months, 3 weeks ago) by juli
Just use USE_LIBS.  __LIBRARIES is obviously not DWIMing anyway, so put the
burden on the user to not double up in USE_LIBS.

Revision 416 - Directory Listing
Modified Fri Dec 11 18:28:08 2009 UTC (8 months, 3 weeks ago) by juli
GNU Make doesn't support .MAIN:, so arrange for it by hand.

Revision 415 - Directory Listing
Modified Thu Dec 10 18:06:02 2009 UTC (8 months, 3 weeks ago) by juli
Whitespace between VPATH+= and the content.

Revision 413 - Directory Listing
Modified Thu Dec 10 18:03:43 2009 UTC (8 months, 3 weeks ago) by juli
Add missed file.

Revision 409 - Directory Listing
Modified Thu Dec 10 17:49:25 2009 UTC (8 months, 3 weeks ago) by juli
Switch to GNU Make in the interest of portability.

Revision 407 - Directory Listing
Modified Sun Nov 22 20:24:52 2009 UTC (9 months, 2 weeks ago) by juli
Clean up empty-body expression style.

Revision 375 - Directory Listing
Modified Sun Oct 18 10:54:55 2009 UTC (10 months, 2 weeks ago) by juli
Remove unused, ill-conceived foreach_byte().

Revision 353 - Directory Listing
Modified Sun Oct 18 06:10:16 2009 UTC (10 months, 2 weeks ago) by juli
Start working towards 0.6.0.

o) Modify XCodecWindow::dereference to return NULL rather than crashing
   if a hostile remote system requests data outside of the window.
o) Have XCodecDecoder track any associated XCodecEncoder.  There may not
   be one, but if there is we can do other things...
o) Removall XCODEC_STATS code.
o) Reinvent XCodec protocol to use a single magic character followed by
   an opcode, which uses fewer bytes in almost all circumstances, and
   provably uses fewer bytes overall.  The result is a non-trivial size
   reduction for encoded streams.  All of them.
o) Get rid of Buffer::escape and Buffer:find_if, which were awkward and
   just there due to the badness of the old XCodec protocol.
o) Update the encoder to use the new output format and to do its own
   data escaping.
o) Make Buffer::find() use memchr(3), which is faster than doing it by
   hand.
o) Get rid of XCodec::decoder() and XCodec::encoder(), which were not in
   use (and which should not have been used.)
o) Add an XCodec::side_effects() static method which will help the decoder
   track whether it can disorder its evaluation of data in the stream.
o) Rewrite the decoder to handle the trivial cases of the new protocol,
   leaving ASK and LEARN unimplemented.  Since we can use the faster
   Buffer::find() now instead of Buffer::find_if(), it's faster even though
   it uses none of the old, clever speed tricks.  It's going to get slower
   as out-of-order parsing is implemented.
o) Update TODO to reflect new priorities.
o) Disable xcdump, as it needs rewritten.

Revision 352 - Directory Listing
Modified Sun Oct 18 01:57:42 2009 UTC (10 months, 2 weeks ago) by juli
Note that memchr would really be better.

Revision 342 - Directory Listing
Modified Sat Sep 26 01:27:05 2009 UTC (11 months, 1 week ago) by juli
Use tabs not spaces after #if/#define.

Revision 316 - Directory Listing
Modified Thu Sep 10 13:07:20 2009 UTC (11 months, 3 weeks ago) by juli
o) Constify a parameter.
o) Remove unused assignment.

Revision 286 - Directory Listing
Modified Mon Sep 7 01:29:33 2009 UTC (12 months ago) by juli
Make sure the PROGRAM is the main target.

Revision 279 - Directory Listing
Modified Sun Sep 6 00:19:37 2009 UTC (12 months ago) by juli
IOV_MAX of 1024 seems to work for Interix.

Revision 272 - Directory Listing
Modified Sat Sep 5 21:56:28 2009 UTC (12 months ago) by juli
Add more types for Interix.

Revision 271 - Directory Listing
Modified Sat Sep 5 21:25:03 2009 UTC (12 months ago) by juli
Reluctantly define uintptr_t on Interix.

Revision 270 - Directory Listing
Modified Sat Sep 5 21:16:47 2009 UTC (12 months ago) by juli
Stop using bsd.obj.mk.

Revision 269 - Directory Listing
Modified Sat Sep 5 21:14:21 2009 UTC (12 months ago) by juli
Add types and limits headers to handle OS dependencies (namely OSes that don't
support C99, like Interix.)

Revision 261 - Directory Listing
Modified Sat Aug 22 06:00:29 2009 UTC (12 months, 2 weeks ago) by juli
Rename previously-added 'find' method to 'find_if' given its predicate argument
to avoid crazy template ugliness with the plain character find function.

Revision 260 - Directory Listing
Modified Sat Aug 22 05:53:54 2009 UTC (12 months, 2 weeks ago) by juli
Add a Buffer::find() method that takes a predicate rather than a single
character.  XXX At some point want to be able to take an array of characters as
the input, which I believe would be even better.

Revision 193 - Directory Listing
Modified Sat Aug 1 08:21:54 2009 UTC (13 months ago) by juli
Make <algorithm> part of the common environment.

Revision 190 - Directory Listing
Modified Thu Jul 30 09:58:09 2009 UTC (13 months, 1 week ago) by juli
Add a hastily-tried way to ensure that library dependencies are honored.

Revision 189 - Directory Listing
Modified Thu Jul 30 09:52:08 2009 UTC (13 months, 1 week ago) by juli
Stop using FreeBSD-like PROG_CXX variable and call it PROGRAM instead.

Revision 188 - Directory Listing
Modified Thu Jul 30 05:40:46 2009 UTC (13 months, 1 week ago) by juli
Disable -g on SunOS systems since at least my OpenSolaris setup can't link with it.

Revision 179 - Directory Listing
Modified Sat Jun 27 09:21:33 2009 UTC (14 months, 1 week ago) by juli
Move program.mk into common/ to make tab-completion of programs/ less ugly and
to hide implementation details from the top-level file list.

Revision 176 - Directory Listing
Modified Tue Jun 16 00:11:41 2009 UTC (14 months, 3 weeks ago) by juli
We implicitly make <string> a part of the standard environment for WANProxy by
needing it in <common/log.h>, so be explicit and put it in <common/common.h> since
it's basically indispensible like the logging and debugging stuff.  This allows
me to clean up recent confusion I've introduced about this in the config code.

Revision 163 - Directory Listing
Modified Sun Jun 14 19:42:41 2009 UTC (14 months, 3 weeks ago) by juli
o) Add a templated enum config type.
o) Make log-level an enum.
o) Make Log::mask take a Log::Priority rather than a string for the log level.
o) Make example configuration use the new enum log-level rather than a string.

Revision 135 - Directory Listing
Modified Mon Apr 20 23:31:58 2009 UTC (16 months, 2 weeks ago) by juli
Add more comments.

Revision 128 - Directory Listing
Modified Sat Apr 18 01:23:26 2009 UTC (16 months, 2 weeks ago) by juli
Make everything build on OpenSolaris.
o) Include <errno.h> in cases where the extern definition of errno may be
   needed, in addition to <sys/errno.h>.
o) Remove serial interface support code, it has not been needed and will not
   likely be needed in the WANProxy repository.
o) On SunOS, add -lnsl and -lsocket when using IO routines as networking
   support requires them.
o) On SunOS, like on Linux, do not populate a 'len' field of a socket address.
o) Mark a bad assertion with a comment.
o) Don't use gethostbyname2(3) on SunOS, sigh.  Would be good to write a
   simple non-blocking resolver anyway...
o) Attempt to use the SunOS method of endianness-determination at compile
   time.  Hopefully I got that right.

Revision 125 - Directory Listing
Modified Tue Apr 7 07:58:30 2009 UTC (17 months ago) by juli
Move the Timer class to the common module from the event module.  It is a more
logical fit there with other general facilities like logging and buffers than
with the event system, which it has no direct relation to.  This also means that
in the future the test code can do timing tests (since test support is in
common as well) and that tack now builds no gratuitous code.

Revision 112 - Directory Listing
Modified Fri Mar 27 07:50:58 2009 UTC (17 months, 1 week ago) by juli
Fix build with GCC 4.4, note some flags that may be useful in the future, etc.
Instead of including common/log.h and common/debug.h on the command line, just
include common/common.h, and let that include headers that are globally-desired,
namely stdint stuff and common/log.h and common/debug.h.  Elsewhere, include
headers that are required at least with GCC 4.4 at least in GNU++0x mode to get
certain functions and constants to be visible.

Revision 89 - Directory Listing
Modified Thu Mar 19 04:58:49 2009 UTC (17 months, 2 weeks ago) by juli
Use a typedef for a typedef rather than silly struct inheritance.

Revision 72 - Directory Listing
Modified Wed Mar 18 09:10:48 2009 UTC (17 months, 3 weeks ago) by juli
Add a Buffer::moveout variant to yield the first BufferSegment.

Revision 69 - Directory Listing
Modified Tue Mar 17 09:27:27 2009 UTC (17 months, 3 weeks ago) by juli
Don't name unused argument.

Revision 58 - Directory Listing
Modified Thu Mar 12 23:40:57 2009 UTC (17 months, 3 weeks ago) by juli
Don't COW a BufferSegment just because we'd like to append to it.
Leave it shared and create a new BufferSegment.

Revision 49 - Directory Listing
Modified Fri Mar 6 10:05:53 2009 UTC (18 months ago) by juli
Fix code to correctly handle priority masks.

Revision 44 - Directory Listing
Modified Thu Mar 5 11:16:22 2009 UTC (18 months ago) by juli
o) ASSERT that we're not trying to skip bytes on an empty Buffer.
o) Return immediately if we're just clearing a whole Buffer in trim/skip.

Revision 27 - Directory Listing
Modified Sun Feb 22 22:24:38 2009 UTC (18 months, 2 weeks ago) by juli
Use a simpler log message format.

Revision 25 - Directory Listing
Modified Sun Feb 22 18:51:48 2009 UTC (18 months, 2 weeks ago) by juli
Add a facility to control the verbosity of the log with regular expressions.

Revision 24 - Directory Listing
Modified Sun Feb 22 07:59:03 2009 UTC (18 months, 2 weeks ago) by juli
Grrr.  Definition of timeval isn't very standard, so just use %u.%06u and
cast to unsigned.  That'll be good enough for a long time.  (No pun intended.)

Revision 23 - Directory Listing
Modified Sun Feb 22 07:55:25 2009 UTC (18 months, 2 weeks ago) by juli
Use tcpdump-style timeval timestamps of all log entries.

Revision 3 - Directory Listing
Modified Tue Feb 17 03:23:58 2009 UTC (18 months, 2 weeks ago) by juli
Comment BufferSegment functions and add a missing check in
BufferSegment::prefix().

Revision 1 - Directory Listing
Added Mon Feb 16 08:26:47 2009 UTC (18 months, 2 weeks ago) by juli
Initial import of public WANProxy codebase.

Based on r238 in the Marvelous Proof repository.

  ViewVC Help
Powered by ViewVC 1.2-dev