Update of /cvsroot/freevo/freevo/src/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv30818

Added Files:
        Rendezvous.py 
Log Message:
Rendezvous Broadcast support for Freevo Web... the web interface will
appear anywhere on your subnet that supports Rendezvous. (Tested under
Mac OS X and Windows)


--- NEW FILE: Rendezvous.py ---
""" Multicast DNS Service Discovery for Python, v0.10
    Copyright (C) 2003, Paul Scott-Murphy

    This module provides a framework for the use of DNS Service Discovery
    using IP multicast.  It has been tested against the JRendezvous
    implementation from <a href="http://strangeberry.com";>StrangeBerry</a>,
    but not against any other.

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
[...1419 lines suppressed...]

if __name__ == '__main__':      
        print "Multicast DNS Service Discovery for Python, version", __version__
        r = Rendezvous()
        print "1. Testing registration of a service..."
        desc = {'version':'0.10','a':'test value', 'b':'another value'}
        info = ServiceInfo("_http._tcp.local.", "My Service Name._http._tcp.local.", 
socket.inet_aton("127.0.0.1"), 1234, 0, 0, desc)
        print "   Registering service..."
        r.registerService(info)
        print "   Registration done."
        print "2. Testing query of service information..."
        print "   Getting ZOE service:", str(r.getServiceInfo("_http._tcp.local.", 
"ZOE._http._tcp.local."))
        print "   Query done."
        print "3. Testing query of own service..."
        print "   Getting self:", str(r.getServiceInfo("_http._tcp.local.", "My 
Service Name._http._tcp.local."))
        print "   Query done."
        print "4. Testing unregister of service information..."
        r.unregisterService(info)
        print "   Unregister done."
        r.close()




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to