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

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

Serving Software Downloads in 956 Categories, Downloaded 50.331.258 Times

pybonjour 1.1.0

  Date Added: April 03, 2010  |  Visits: 1.058

pybonjour

Report Broken Link
Printer Friendly Version


Product Homepage
Download (93 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
USER REVIEWS
More Reviews or Write Review


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  
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.
 
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  
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  
Misc. Web Browser Tools  -  Fasterfox 2.0
Performance and network tweaks for Firefox, Fasterfox allows you to tweak many network and rendering settings such as simultaneous connections, pipelining, cache, DNS cache, and initial paint delay. Dynamic speed increases can be obtained with the...
116 KB  
Libraries  -  libsndfile 1.0.17
Libsndfile is a C library for reading and writing files containing sampled sound (such as the Apple/SGI AIFF format and MS Windows WAV) through one standard library interface. The library was written to compile and run on a Linux system but...
808.96 KB  
Audio Tools  -  EKS-9 VST/AudioUnit for Mac OS 1.0
A new software synthesizer plugin for Mac OS X running under hosts such as Apple's GarageBand or Logic Pro. The plugin is designed to recreate the sound of analog electronic kickdrum sounds. It offers two synthesis modes, 808 and 909, each with...
3 MB  
Application Add-Ins  -  JobPro Central for Mac OS 6.0
Fully customizable, Windows & Apple Mac business management software that improves productivity by centralizing business processes such as contact, job and time management, budgeting, scheduling, order processing, invoicing and employee...
45 MB  
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  -  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  
Network & Internet  -  SQL Inject Me 0.4.5
SQL Inject Me is a Firefox extension used to test for SQL Injection vulnerabilities. The tool works by submitting your HTML forms and substituting the form value with strings that are representative of an SQL Injection attack.
133.12 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  -  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  
Networking Tools  -  triggers 0.41
trigger is a lightweight, asynchronous notification mechanism to set off events in and across systems. The poor mans daily snapshot, glastree builds live backup trees, with branches for each day. Users directly browse the past to recover older...
14.34 KB