DirWatch and TCP Client

"Jeff Eggen" <[email protected]>
Newsgroups gmane.comp.lang.perl.poe
Message-ID <[email protected]>
Hi all,

I'm very new to this POE stuff, and figured there was someone here who could give me some advice.  It seems like an event-driven solution is the way to go about things in this situation, but I don't have much experience with it.

I have an application that generates messages as files on a filesystem, separating the files into various directories based on their content.  My objective is to get those files and send them via tcp to various applications on other hosts.  I'm thinking that I would go about this with PoCo::DirWatch and PoCo::Client::TCP, but I'm not sure exactly how best to wire the two together so that I have one client session attached to one directory watcher.

Can anyone provide advice as to how to tie the event handlers of those two classes together so that a DirWatch session getting an event will somehow inform the appropriate Client::TCP session that it has an event?

Thanks,

Jeff Eggen
IT Analyst
Saskatchewan Government Insurance
Ph (306) 751-1795
email [email protected]

This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.  If you are not the named addressee, please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that using, disclosing, copying or distributing the contents of this information is strictly prohibited.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.