Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Net::OSCAR: Having trouble getting started

by eric256 (Parson)
on Jan 29, 2005 at 06:53 UTC ( [id://426202]=note: print w/replies, xml ) Need Help??


in reply to Re: Net::OSCAR: Having trouble getting started
in thread Net::OSCAR: Having trouble getting started

Apparently the $oscar->do_one_loop(); is a pretty important aspect. Thanks for your help!

Yes. That is actualy the meat of how it works. The AIM protocol counts on sending messages back and forth, if its like MSN it uses several connections while doing this. In order for that communication to work and not block your program, it is written in an event based style. This means you setup events to do certain things and then wait for the module to call those events. Inside your connection event the first thing received is actualy the $oscar object. You could then use that to send the message. the way it is currently setup its going to send your message every 5 seconds.


___________
Eric Hodges
  • Comment on Re^2: Net::OSCAR: Having trouble getting started

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://426202]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-23 21:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found