~oxan/gearman.net/bugfix

Viewing all changes in revision 23.

  • Committer: John Ewart
  • Date: 2009-12-18 16:00:24 UTC
  • Revision ID: john@unixninjas.org-20091218160024-24i4hii6mna83z70
Re-organized the packets into sub-classes of Packet, one sub-class per packet type, with per-packet-type parsing and extra attributes. Each sub-class uses the general Packet constructor to parse the common header data, and then parses the extended data itself. Wrote a few sample applications (found in 'apps'), and added a few more unit tests (some overlap there between the tests and the apps). Additional improvements include the addition of a 'Job' class that is now the only parameter passed to a callback function which contains references to the worker it came from and the job packet itself, along with some convenience attributes and data.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: