data.put(contact.getVersion());
data.position(0);
channel.write(data);
// write key
JKadUDPKey key = contact.getKadUDPKey();
if (key == null) {
data = getByteBuffer(4 + 4);
data.position(0);
channel.write(data);
} else {
data = getByteBuffer(4 + 4);
data.put(key.getKey());
data.put(key.getAddress().getAddress());
data.position(0);
channel.write(data);
}
data = getByteBuffer(1);