Strip libev dependent virtual function out of encoder. Replace with an enumeration representing what kind of IO should be performed.