Re: Overriding frame_available method in a already existing profile.

Andrea Campi <[email protected]> Thu, 5 Dec 2002 12:21:12 +0100
Newsgroups gmane.network.beep.roadrunner.general
Organization I.NET S.p.A.
Message-ID <[email protected]>
On Thu, Dec 05, 2002 at 11:59:44AM +0100, Francis Brosnan Bl?zquez wrote:
> Hi.
> 
> I would like to override the frame_available method in an already
> existing profile to get all message process funcionality out from the
> profile code that I have made. I want to do this because I don't want to
> have code in my shared library that will only be used by my server.

Check out my CAP profile:

cvs -d:pserver:[email protected]:/cvsroot/
freeassociation export -Dnow rrcap

In a nutshell: you don't want to override the handler in your server.
Instead, your profile's frame_available function should invoke some
kind of callback. A nice way (the way codefactory advocates now) is
to have a config object. Your server would then create the config
object and pass it as an argument when registering a profile.

Hope it helps!

Bye,
	Andrea

-- 
Andrea Campi                              mailto:[email protected]
I.NET S.p.A. - BT Ignite                  http://www.inet.it
Technical Dept. - R&D			  phone: +39 02 32863 ext 1
v. Darwin, 85 - I-20019			  fax: +39 02 32863 ext 7705
Settimo Milanese (MI), Italy