XP is just a number | |
PerlMonks |
Re^2: Net::OSCAR: Having trouble getting startedby eric256 (Parson) |
on Jan 29, 2005 at 06:53 UTC ( [id://426202]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|