Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10936 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59807 invoked by uid 1010); 6 Jul 2004 21:45:44 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 59750 invoked from network); 6 Jul 2004 21:45:44 -0000 Received: from unknown (HELO devel.bitflux.ch) (212.71.98.108) by pb1.pair.com with SMTP; 6 Jul 2004 21:45:44 -0000 Received: from localhost (localhost [127.0.0.1]) by devel.bitflux.ch (Postfix) with ESMTP id D495F8F6DA; Tue, 6 Jul 2004 23:45:43 +0200 (CEST) Received: from devel.bitflux.ch ([127.0.0.1]) by localhost (devel.bitflux.ch [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09417-02-9; Tue, 6 Jul 2004 23:45:42 +0200 (CEST) Received: from [192.168.0.104] (217-162-112-161.dclient.hispeed.ch [217.162.112.161]) by devel.bitflux.ch (Postfix) with ESMTP id 099788F6AA; Tue, 6 Jul 2004 23:45:41 +0200 (CEST) Message-ID: <40EB1D82.7000808@bitflux.ch> Date: Tue, 06 Jul 2004 23:45:38 +0200 User-Agent: Mozilla Thunderbird 0.7.1 (Macintosh/20040626) X-Accept-Language: en-us, en MIME-Version: 1.0 To: John LeSueur Cc: internals@lists.php.net References: <40EB1C7C.2010309@supernerd.com> In-Reply-To: <40EB1C7C.2010309@supernerd.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at bitflux.ch Subject: Re: [PHP-DEV] Rendezvous in php From: chregu@bitflux.ch (Christian Stocker) Hi first. pecl-dev@lists.php.net is the right place for this second. there's already a zeroconf extension at pecl (based on howl), which does some rendezvous stuff. Maybe you could join efforts with them. http://pecl.php.net/package-info.php?package=zeroconf But yes, rendezvous support in PHP could certainly have its uses. chregu On 6.7.2004 23:41 Uhr, John LeSueur wrote: > I apologize if this is the wrong place for this. I have been working on > building a rendezvous php module, and have a proof of concept. I've been > developing it on windows, but I think it should compile fine for the > real platforms. Feel free to point and laugh, it isn't amazing code. > sample usage: > > $conn = rendezvous_register_service( > "_http._tcp" //dnstype > , 4500 //port > 0// optional - interface. 0 means all, -1 means > local only. > );//returns a rendezvous connection resource > $servers = rendezvous_browse( > "_http._tcp" //dnstype > , 2 //optional - timeout in seconds > , 100 //optional - timeout in microseconds > , 0 //optional - interface, see above... > );//returns an array of hosts that responded. > echo("
");
>    print_r($conn);
>    print_r($servers);
>    echo("
"); > rendezvous_unregister_service($conn);//stop advertising > ?> > > John LeSueur > -- christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich phone +41 1 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71 http://www.bitflux.ch | chregu@bitflux.ch | gnupg-keyid 0x5CE1DECB