BonAHA is a library that can be used for easily building rich P2P applications that can operate in a regular always-on network, an ad-hoc wireless network or even in a disconnected scenario.
The BonAHA library abstracts away all the networking details (such as network transition events) and allows the developer to focus on writing applications that work with network churn while handling minimal networking events.
For a simple example of how it can be used for developing ad-hoc applications, please have a look at the LocationFinder example on our wiki.
The BonAHA library is built on Apple's Bonjour, which is a multi-platform implementation of Zero Configuration Networking (ZeroConf). BonAHA is built in Java using Bonjour's Java libraries.