public void startSharing() {
printHeader();
connected = sender.connect();
if (connected) {
ChangedBlocksListener changedBlocksListener = new ChangedBlockListenerImp(sender);
blockManager.addListener(changedBlocksListener);
ScreenCaptureListener screenCapListener = new ScreenCaptureListenerImp(blockManager);
captureTaker.addListener(screenCapListener);
captureTaker.start();
sender.start();