POE Folks,
I'd like to use POE::Component::Server::TCP to read data from active network 
sensors but they have a proprietary protocol buffer like format.  Is there a 
way to build a ClientInputFilter with multiple fixed length reads building on 
each other.
 
byte-type, byte-payload-length, payload-of-specified-length
 
An example
 
"\123\005ABCDE"
"\124\000"
"\125\001A"
"\126\007ABCDEFG"
 
There is no "line" separator in the protocol.
 
I currently already have a deserializer for each type that I'd like to be able 
to plug into ClientInput $_[ARG0] somehow;
 
In non-POE I just 
 
my $type=read_byte;
my $length=unpack("C", read_byte); 
my $payload=read_bytes($length);
my $object=My::Object::Factory->new(type=>$type, data=>$payload);
 
Any pointers and help would be appreciated on how to get from here to there.
Thanks,
Mike

Reply via email to