Good morning, and welcome to the new list.

A session that has several wheels currently cannot tell which wheel
generated an event.  I discovered this while writing a Component that
manages several connections: which SocketFactory should be destroyed
when an error arrives?  Can't tell!  I've changed the wheels a little
to make this possible, and one of the changes may break existing
programs.

These three changes won't break any code:

1. Every wheel will have a unique ID.

2. Wheels' events will include the wheel ID at the end of the current
parameters.  It really should be at the beginning, but that would
instantly break everything.

3. Wheels have a new method: ID().  This works like POE::Session's ID:
it returns the wheel's unique ID.

This change probably breaks existing code:

1. Wheels must always return an object reference so that an ID method
can be called on them.  Otherwise it's impossible to match a constructor
error back to the wheel that had the problem.  This breaks code that
relies on an undef return value to indicate error.

I expect these changes to be in version 0.1106, and people should take
care when installing it on production systems.

-- Rocco Caputo / [EMAIL PROTECTED]


Reply via email to