in reply to Re: sending data over TCP channel using POE::Component::Server::TCP
in thread sending data over TCP channel using POE::Component::Server::TCP

Thanks Paul.
I hope the code example is better now.
sysread was the first thing come into my mind when I tried to serialize the content of my file, get a string and send it out. It seems to work just fine before this line $_[HEAP]{client}->put($buffer);
The problem appears when I send this string to other side. It got chunked somewhere, I didn't receive the whole packet.
I think the size of the sending data might have been fix at a certain maximum. I'm not sure...
I don't know if using POE::Filter will fix it. I'll take a look.
  • Comment on Re^2: sending data over TCP channel using POE::Component::Server::TCP
  • Download Code