public class JavaBDFClientExample implements BDFListener {
public JavaBDFClientExample() {
// create a BDFNetworkClient
BDFClient client = new BDFClient("localhost", 4322, 33);
// register this class as listener on the client
client.addListener(this);
// connect the client to the BDF server
client.connect();
}