client = new Client(BYTE_TO_1MO * 10, BYTE_TO_1MO * 10);
client.start();
client.connect(10000, ipServeur, portTCP, portTCP + 1);
NetworkKryoInit newInit = new NetworkKryoInit();
newInit.registerKryo(client.getKryo());
client.addListener(this);
serializer = new Kryo();
init.registerKryo(serializer);
factory = new ChunkSendFactory(serializer);