Hello,
I am a new user of POE and I have a script that creates a connection
to a tcp server and am processing the data coming from that server. I
have 7 different servers that I run the script against.
I would like to create a single POE script that does what I need. I
know that I can set up individual sessions within the script to handle
this. In order to process the data, my state needs to know what
system the data comes from.
The easiest way I see to do this is to have a variable in the sessions
heap that is something like:
heap->{sitename} = site1
So my question is two fold, first is this the proper syntax to do this
and second if it is, where do I put this statment within the POE
script( I.E. Within the new() construct of the
POE::Component::Client::TCP or somewhere else)?
I have read the docs that are available, but I can not find a
reference to setting vars within the heap.
Thanks for any help you can provide,
Jeff