Next-in-Thread Next-in-Thread
 Next Message Next Message

&MCCISendAnchor calls YOUR function 

Forum: CCI for Perl
Re: [Q] About SendAnchor() (Kannan Thiruvengadam)
Re: [A] About SendAnchor() (Adrian Howard)
Date: 1995, Jan 17
From: Ed Burns

MCCISendAnchor calls your function The &MCCISendAnchor function calls whatever callback function you define whenever it gets a URL from the Mosaic session to which your program is connected. For example:

    .
    .
    .
    $on = 1; the
    $acb = "acb";
    $arc = &MCCISendAnchor($CCIPort,$on,$acb,@cbd);
    .
    .
    .

sub acb { 
	local(@data) = @_;
	print "your URL is $data[0]\n";
	foreach $arg (@data) {
  	print "anchor callback worked, data is $arg\n";
	}
}

would cause the function acb to be called whenever a URL is sent. Hope this helps

 Next-in-Thread Next-in-Thread
 Next Message Next Message
Inline:
 1 1
 All All
Outline:
 1 1
 2 2
 All All

1 [Q] MCCISendAnchor problem by Arun Krishnamoorthy, 1995, May 19

 Add Add
to: "&MCCISendAnchor calls YOUR function"

 Members Members
 Subscribe Subscribe
 Admin Mode Admin Mode
 Show Frames Show Frames
 Help Help


Earn money with Scour!
Google
 
Web www.HyperNews.org
Earn money with Scour!