Questions tagged [poe]

POE is a portable framework for cooperative, event driven multitasking and networking in Perl. Other languages have similar frameworks. Python has Twisted. TCL has "the event loop".

Related Resources

54 questions
1
vote
0 answers

perl db poll results and poe wheel run

Im trying to write a app that polls a db table and processes the records found using Poe wheel run. This doesn't seems to work perfectly . Any suggestions out there. The db poll sql SELECT request_type destination port request FROM table1 …
user2594853
  • 67
  • 1
  • 9
1
vote
3 answers

How do I check if a user is authenticated with NickServ using POE::Component::IRC::State in Perl?

I'm trying to test whether a user is registered on FreeNode. nick_info() doesn't seem to return information about this, so I want to use $irc->yield(whois => $nick); and then grab the irc_whois event's reply. The problem is that I want to wait until…
Troy
  • 1,599
  • 14
  • 28
1
vote
1 answer

PERL POE ReadWrite Wheel File IO Example?

I'm having trouble finding an example of how to create and write to a file using a POE Wheel or whatever async process. I want to be able to write large files in a non blocking way. I'm looking for examples, but don't know where to start.
dudeman
  • 503
  • 3
  • 11
1
vote
0 answers

What issues would a setup like this cause? (Cisco POE switch -> unmanaged gigabit switch -> HP JD483B -> MSM313)

What issues would a setup like this cause? Cisco POE switch -> unmanaged gigabit switch -> HP JD483B (POE injector) -> MSM313 I need to add a device for a short period of time. Would I need something besides the HP JD483B? Thanks!
1
vote
1 answer

Understanding name spaces in POE-Tk

I posted "How to undersand the POE-Tk use of destroy?" in an attempt to reduce the bug in my production code to a test case. But it seems that the solution to the test case is not working in the full program. The program is 800+ lines long so I am…
jpolache
  • 305
  • 3
  • 12
1
vote
2 answers

Making an IRC bot - how can I let people !eval perl/javascript code?

I'm working on a bot in Perl (based on POE) and so far so good, but I can't figure out how can I add a !js or !perl command to evaluate respective code and return one line of output to be printed into the channel. I found App::EvalServer but I don't…
argoneus
  • 1,097
  • 2
  • 13
  • 24
1
vote
1 answer

How does variable scoping work in a POE session?

Can anyone explain how variable scoping works within a POE session? What is the proper way to pass state within the session, without impacting other sessions? Thanks Josh
Josh Arenberg
  • 10,078
  • 5
  • 21
  • 17
0
votes
1 answer

Perl and IRC: Periodically send a message to a channel

I'm making a Perl IRC bot and I want to send a message periodically to a channel. I'm using POE::Component::IRC, but as far as I can see, there is no method or event handling this. Is there a way to accomplish this?
Lasse A Karlsen
  • 801
  • 5
  • 14
  • 23
0
votes
1 answer

POE-Component-IRC crashes under Windows 7 64-bit

I'm trying to run the Perl module POE-Component-IRC using Perl v5.12.13 with ActiveState under Windows 7 64-bit and each time it is run it crashes Windows. I'm pretty sure it's something to do with this module since the only lines I have in the…
Nathan
  • 1
  • 1
0
votes
1 answer

Perl POE DirWatcher

Can someone tell me if POE::Component::DirWatch works with an ftp directory .show me how you would watch a directory over ftp
yambu
  • 35
  • 6
0
votes
1 answer

How do I set up my POE::Filter to receive the entire chunk of data returned from the server?

I tried the following my $filter = POE::Filter::Line->new(OutputLiteral => ''); my $wheel = POE::Wheel::ReadWrite->new( Handle => $socket, Filter => $filter, InputEvent => 'on_input', ErrorEvent => 'on_error', …
mrburns
  • 453
  • 1
  • 8
  • 17
0
votes
1 answer

Why are these POE threads results not showing when I print them?

The code below should print ten results but instead it prints ten "test-ite". Why is it not showing the results it got from the database? use Data::Dumper; use POE; use POE qw( Component::Pool::DBI ); POE::Session->create( inline_states => { …
finidi
  • 3
  • 1
0
votes
1 answer

Daemon network process (perl) under Redhat RHEL5 is denying network connection

I wrote a program that is using the Perl POE Framework to realize a json webservice. So far so good. I have no problems running that application under debian systems. But when i run my application under RHEL5 the network connection is refused. I…
jami
  • 190
  • 2
  • 14
0
votes
1 answer

OpenSSH POE session stuck

I am doing non-blocking ssh into over 300 radio devices on our network using POE::Component::OpenSSH and a separate POE::Session for every device. The script I have is in working form BUT some of the devices have not been configured with the correct…
0
votes
1 answer

POE: recurring server Alarms in a custom POE::Component

I'm trying to set up a client-server application with perl POE. After reading some of the POE documentation on CPAN and trying some of the examples of the cookbook, finaly reccuring Alarms, I have the following problem: The events in my custom…
smartmeta
  • 1,149
  • 1
  • 17
  • 38