S
schwarzenschafe
I'm writing a distributed WWW media (images) robot. I want a central
server that holds the database and manages the other servers. These
other servers will manage several robot processes. Every server will
have different access to the web, and must communicate over the
internet.
I'd like to use POE, I need some kind of event driven management of
each server. I can't run the robots themselves in POE because they'll
be waiting for LWP to return webpages, and I'd also like to sleep()
which makes the whole POE driven server (all robots) stop.
The best setup I can come up with uses domain sockets for the robot
proccesses to communicate with the POE management process, which itself
can communicate with the POE central server. I'm not very clear on how
the servers will communicate. I want a permenant bidirectional
connection, but I don't know if I can make a single TCP/IP connection
with POE and have either server send data to the other to trigger
events on the remote server. Likewise if the robot process and POE can
monitor local sockets for bidirectional communication on teh same
machine. Any help is appreciated, including which modules I should look
at. I've found a lot of books on robots, read some. And yes, I know
what a monumental undertaking this is (I either have a lot of time or
I'm a senseless dreamer, or both). Regards,
- SS
server that holds the database and manages the other servers. These
other servers will manage several robot processes. Every server will
have different access to the web, and must communicate over the
internet.
I'd like to use POE, I need some kind of event driven management of
each server. I can't run the robots themselves in POE because they'll
be waiting for LWP to return webpages, and I'd also like to sleep()
which makes the whole POE driven server (all robots) stop.
The best setup I can come up with uses domain sockets for the robot
proccesses to communicate with the POE management process, which itself
can communicate with the POE central server. I'm not very clear on how
the servers will communicate. I want a permenant bidirectional
connection, but I don't know if I can make a single TCP/IP connection
with POE and have either server send data to the other to trigger
events on the remote server. Likewise if the robot process and POE can
monitor local sockets for bidirectional communication on teh same
machine. Any help is appreciated, including which modules I should look
at. I've found a lot of books on robots, read some. And yes, I know
what a monumental undertaking this is (I either have a lot of time or
I'm a senseless dreamer, or both). Regards,
- SS