Re: PoCo SNMP: a couple questions

2004-12-21 Thread Rob Bloodgood
On Mon, Dec 20, 2004 at 10:50:42AM -0700, Jim wrote: I'm new to POE, so this could be relatively simple. My apologies if it is, my search efforts turned up empty as I'm not sure what question to ask. Welcome! Largely to learn POE, I'm doing a proof-of-concept with POE and PoCo::SNMP to

Re: PoCo SNMP: a couple questions

2004-12-21 Thread Jim
Rob Bloodgood wrote: On Mon, Dec 20, 2004 at 10:50:42AM -0700, Jim wrote: The main session _starts by creating a PoCo::SNMP instance that grabs a list of VLANs from the switch. For each of those VLANs, there's a session created to grab four other OIDs based via a community-string-indexed

POE::Loop::Wx

2004-12-21 Thread Mike Schroeder
Mattia Barbon (the maintainer for wxPerl) created a POE::Loop::Wx module a while back. It worked until the POE 3.003 release, but a few simple tweaks (looking at POE::Loop::Gtk) was enough to get it working again. I have attached the module and a minimalpoe.pl wxPerl script. I have a few

Re: POE::Loop::Wx

2004-12-21 Thread Rocco Caputo
On Tue, Dec 21, 2004 at 12:14:29PM -0700, Mike Schroeder wrote: Mattia Barbon (the maintainer for wxPerl) created a POE::Loop::Wx module a while back. It worked until the POE 3.003 release, but a few simple tweaks (looking at POE::Loop::Gtk) was enough to get it working again. I have

Re: Problems sending to stdin of POE::Wheel::Run-spawned process

2004-12-21 Thread Rocco Caputo
On Mon, Dec 20, 2004 at 10:44:23PM -0800, Dan McCormick wrote: Shouldn't the code below print 1, 2, 3, 4 on separate lines to the file /tmp/test.txt? If I comment out lines 537-538 of POE::Wheel::Run.pm, namely: $poe_kernel-select_pause_write($self-[HANDLE_STDIN]) unless

Re: PoCo SNMP: a couple questions

2004-12-21 Thread Rob Bloodgood
On Tue, Dec 21, 2004 at 09:45:03AM -0700, Jim wrote: Rob Bloodgood wrote: That being said: it sounds like you're issuing 4 different OID requests. It also sounds like you're creating a session per VLAN. You ONLY create a session per VLAN *if* each VLAN has a different IP address.

Re: Problems sending to stdin of POE::Wheel::Run-spawned process

2004-12-21 Thread Dan McCormick
Hmmm. Interesting. So consider this: I have a stream of data, which I'm sending to the POE::Wheel::Run process. At an arbitrary time I can get a signal that the stream has ended, at which point I want to shutdown the process's STDIN. If I knew the last bit of data sent was going to be the last