added a way to instance net event classes through an instance pointer passed to a class's static callback methods.