Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 30.073.838 Times

pybonjour 1.1.0

  Date Added: April 03, 2010  |  Visits: 719

pybonjour

Report Broken Link
Printer Friendly Version


Product Homepage
Download (74 downloads)

pybonjour provides a pure Python interface (via ctypes) to Apple Bonjour and compatible DNS-SD libraries (such as Avahi). The application allows Python scripts to take advantage of Zero Configuration Networking (Zeroconf) to register, discover, and resolve services on both local and wide-area networks. Since pybonjour is implemented in pure Python, scripts that use it can easily be ported to Mac OS X, Windows, Linux, and other systems that run Bonjour. Examples The following scripts are included in the examples directory of the pybonjour source distribution. Registering a Service register.py Script import select import sys import pybonjour name = sys.argv[1] regtype = sys.argv[2] port = int(sys.argv[3]) def register_callback(sdRef, flags, errorCode, name, regtype, domain): if errorCode == pybonjour.kDNSServiceErr_NoError: print Registered service: print name =, name print regtype =, regtype print domain =, domain sdRef = pybonjour.DNSServiceRegister(name = name, regtype = regtype, port = port, callBack = register_callback) try: try: while True: ready = select.select([sdRef], [], []) if sdRef in ready[0]: pybonjour.DNSServiceProcessResult(sdRef) except KeyboardInterrupt: pass finally: sdRef.close() Example Output $ python register.py TestService _test._tcp 1234 Registered service: name = TestService regtype = _test._tcp. domain = local. Browsing for and Resolving Services browse_and_resolve.py Script import select import sys import pybonjour regtype = sys.argv[1] timeout = 5 resolved = [] def resolve_callback(sdRef, flags, interfaceIndex, errorCode, fullname, hosttarget, port, txtRecord): if errorCode == pybonjour.kDNSServiceErr_NoError: print Resolved service: print fullname =, fullname print hosttarget =, hosttarget print port =, port resolved.append(True) def browse_callback(sdRef, flags, interfaceIndex, errorCode, serviceName, regtype, replyDomain): if errorCode != pybonjour.kDNSServiceErr_NoError: return if not (flags & pybonjour.kDNSServiceFlagsAdd): print Service removed return print Service added; resolving resolve_sdRef = pybonjour.DNSServiceResolve(0, interfaceIndex, serviceName, regtype, replyDomain, resolve_callback) try: while not resolved: ready = select.select([resolve_sdRef], [], [], timeout) if resolve_sdRef not in ready[0]: print Resolve timed out break pybonjour.DNSServiceProcessResult(resolve_sdRef) else: resolved.pop() finally: resolve_sdRef.close() browse_sdRef = pybonjour.DNSServiceBrowse(regtype = regtype, callBack = browse_callback) try: try: while True: ready = select.select([browse_sdRef], [], []) if browse_sdRef in ready[0]: pybonjour.DNSServiceProcessResult(browse_sdRef) except KeyboardInterrupt: pass finally: browse_sdRef.close() Example Output $ python browse_and_resolve.py _test._tcp Service added; resolving Resolved service: fullname = TestService._test._tcp.local. hosttarget = bumble.local. port = 1234 ....

Requirements: No special requirements
Platforms: Linux
Keyword: Apple Bonjour Browse Callback Dns Networking Noerror Port Print Pybonjour Python Resolve Sd Such As System
Users rating: 0/10

License: Freeware Size: 15.36 KB
PYBONJOUR RELATED
Home & Leisure  -  AbsoluteShield Internet Eraser Pro 4.00
Every time you browse the Internet, your own computer records your activities with programs such as Internet Explorer, AOL, and Netscape. If you're a businessperson who doesn't want colleagues to know what Web sites you've visited, a student who...
1.52 MB  
Networking Tools  -  DNS Blacklist Packet Filter 0.6 Beta1
DNS Blacklist Packet Filter project is a Linux netfilter client that decides whether to accept or drop packets based on the results of a DNS blacklist query (such as MAPS, SORBS, or SPEWS, to name a few). One use is to filter all incoming SMTP...
163.84 KB  
Networking Tools  -  DNS Thing 1.0
DNS Thing is a free utility that provides Windows users with a way to make common DNS queries using a graphical user interface. It can provide frequently queried information like looking up the IP address for a hostname or determining the MX...
1014.42 KB  
Miscellaneous  -  PHP-Spacester 1.0
PHP-Spacester is a social networking script such as Myspace and friendster. It is a fork of astrospaces. It will feature the XDNS system (Xotmid Distributed Network System) which is a leaf-hub connection.
 
Audio Tools  -  Agood DVD Ripper Ultimate Free 4.2
Agood DVD Ripper Ultimate Free is powerful and easy-to-use DVD ripping software with the ability of ripping DVD to almost all video and audio formats, such as AVI, MP4, WMV, VCD, SVCD, DVD, 3GP, iPod, iPhone, Zune, Xbox, PMP, PSP, Apple TV, Pocket...
3.47 MB  
Games  -  AppCode 1.5
AppCode is a new Objective-C IDE for developers building apps for Apple devices such as Macs, iPhones & iPads. Why try AppCode? Because of a truly smart code editor, with: - Thought-out and convenient code...
74.71 MB  
Productivity  -  AppFlow App Discovery 2.3.0.0
Browse and discover apps in a new, engaging and beautiful way. AppFlow presents a unique way to explore the marketplace via its Lists, Discovery and Stats features. Browse a dozen unique app lists, such as Indie Games, Rising Stars,...
12 MB  
Music  -  PocketFilms 2.1.0.0
Update 1.4 : 1. Added Share feature to share your videos on social networking like facebook/twitter. 2. Update Media Player to include more controls such as pause/play, volume, layout etc. Pocket Films is an App for you to enjoy...
2 MB  
MP3 Tools  -  ZC Video to iPod Converter 4.2.1.1768
ZC Video to iPod Converter convert most of pop video movies to Apple iPod Mp4 Video movie, support most popular format on internet such as Divx, Xvid, AVI, Mpeg, MP4, MOV, 3GP ect. It's a 1-click solution to convert huge of internet movie...
3.39 MB  
Home & Leisure  -  Switcher 2.1
Switcher - LPT device handler, a simple software to handle devices such as antennas connected to an LPT port. The “1” button erects a logical one at pin 2 of an LPT-port, the “2” button sets high level at pin 3 and so on. The program can...
463 KB  
NEW DOWNLOADS IN NETWORK & INTERNET, NETWORKING TOOLS
Network & Internet  -  Free WiFi Hotspot 3.3.1
Free WiFi Hotspot is a super easy solution to turn your laptop or notebook into a portable Wi-Fi hotspot, wirelessly sharing your internet connections like DSL, Cable, Bluetooth, Mobile Broadband Card, Dial-Up, etc. through the built-in wireless...
1.04 MB  
Network & Internet  -  Easy Uploads 1.8
Easy uploads is a file storage media streaming application designed by Filestreamers that allows you to upload, store, and stream your files from their virtually unlimited file storage server. Easy Uploads can backup,share, and stream your files...
615.97 KB  
Network & Internet  -  IPv6 CARE 3.2b
IPv6 CARE, "IPv6 Compliant Automatic Runtime Environment", is a Linux tool able to patch ipv6-agnostic programs on-the-fly ('patch' mode). It can also generate a diagnosis about the IPv6 compliance of an application ('check' mode).
409.6 KB  
Network & Internet  -  PacketFence ZEN 3.1.0
PacketFence is a fully supported, trusted, Free and Open Source network access control (NAC) system. Boosting an impressive feature set including a captive-portal for registration and remediation, centralized wired and wireless management, 802.1X...
1024 MB  
Network & Internet  -  django-dbstorage 1.3
A Django file storage backend for files in the database.
10.24 KB  
Networking Tools  -  gvrpad 0.1
gvrpad is a daemon that makes GVRP announcements of all VLAN interfaces on a FreeBSD system. GVRP is the GARP VLAN Registration Protocol, defined in IEEE 802.1Q (VLANS); GARP is the Generic Attribute Registration Protocol, defined in 802.1D...
15.36 KB  
Networking Tools  -  Cheops 0.61
Cheops is an Open Source Network User Interface. It is designed to be the network equivalent of a swiss-army knife, unifying your network utilities. Cheops is for the network what a file manager is for your filesystem..
317.44 KB  
Networking Tools  -  dynacc 0.5.0
Dynacc aims to be a Pakage which gives you control other your Internet Connection. It runs a linux router/host which provides MASQ services and HTTP proxying for a LAN. It gives you the Power to define users/groups which are allowed to make...
122.88 KB  
Networking Tools  -  ssh tunnel on demand 1.0
ssh tunnel on demand provides a script that creates an SSH tunnel on demand. ssh tunnel on demand is a script that makes it possible for a user to create an SSH tunnel to a server and connect to it without needing an account on the box or any...
13.31 KB  
Networking Tools  -  strongSwan 4.1.5
strongSwan is an OpenSource IPsec implementation for the Linux operating system. strongSwan is an OpenSource IPsec implementation for the Linux operating system. In order to have a stable IPsec platform to base our future extensions of the X.509...
1.7 MB