// The number of channels which are send by the server and read by the client must be the same! If not, data will be incorrect.
int channels = reader.getHeader().getNumChannels();
// create a BDFNetworkClient
BDFNetworkClient client = new BDFNetworkClient("localhost", 4321, channels);
client.addListener(this);
// connect the client
client.connect();
}