saymedia/AnyEvent-Peer39 — pull request #1 by ssmccoy (2012-02-16 01:04:50+00:00)
Title: A bit of cleanup in AnyEvent::Peer39

Converted callback to a closure.

* The object-oriented callback was a significant amount of overhead for a
simple means to track a minimal amount of state.
* Reworked so the "cb" parameter is a subref.
* Reworked ::Response so it can be returned in all error conditions.
* Updated (and shortened) tests to reflect this

This was done because it was difficult to track state in a concise fashion with the existing API.