in reply to Re: persistant IM
in thread persistant IM

Big Brother (bb4.com) utilizes a pager script which can be user-defined. The script itself can be found at http://www.deadcat.net/3/aim. The script is essentially stand-alone and was based on the perldocs for Net::AIM and several AIMbots to see what was involved (it's not exactly the prettiest code I admit). It already has to initialize a connection but I'm unsure how to go about having it utilize an existing connection since the script is essentially run from scratch each time it's called.

Replies are listed 'Best First'.
Re: Re: Re: persistant IM
by castaway (Parson) on Jan 16, 2004 at 11:03 UTC
    If your script gets run from scratch on every call, and you can't change that, it looks like you're going to have to split it into a client-server architechture. That means, have one piece (the server) that runs all the time, holding the AIM connection open, and listening for things to do from the other piece (the client), which gets rerun every time, and contacts the server script with whatever it has to send.

    There are several ways to communicate between client and server, try reading up on sockets and IPC in the perlipc manpage.

    C.

      Thanks, I was afraid it may require that. Ah well, at least I get to learn something new.