Rendezvous in php

From: Date: Tue, 06 Jul 2004 21:41:16 +0000
Subject: Rendezvous in php
Groups: php.internals 
Request: Send a blank email to internals+get-10935@lists.php.net to get a copy of this message
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("<pre>");
print_r($conn); print_r($servers); echo("</pre>"); rendezvous_unregister_service($conn);//stop advertising ?> John LeSueur

« previous php.internals (#10935) next »