From 1cd59370e6796102b9863e066e3c9e5ad96f194d Mon Sep 17 00:00:00 2001 From: vanitasvitae Date: Mon, 12 Jun 2017 16:42:46 +0200 Subject: [PATCH] More Progress --- .../JingleFileTransferSession.java | 5 - .../jingle_s5b/JingleS5BTransportHandler.java | 178 +++++++++++------- 2 files changed, 106 insertions(+), 77 deletions(-) diff --git a/smack-experimental/src/main/java/org/jivesoftware/smackx/jingle_filetransfer/JingleFileTransferSession.java b/smack-experimental/src/main/java/org/jivesoftware/smackx/jingle_filetransfer/JingleFileTransferSession.java index 486090f76..73def6d17 100644 --- a/smack-experimental/src/main/java/org/jivesoftware/smackx/jingle_filetransfer/JingleFileTransferSession.java +++ b/smack-experimental/src/main/java/org/jivesoftware/smackx/jingle_filetransfer/JingleFileTransferSession.java @@ -504,11 +504,6 @@ public class JingleFileTransferSession extends AbstractJingleSession { return state.handleTransportAccept(transportAccept); } - @Override - protected IQ handleTransportInfo(Jingle transportInfo) { - return state.handleTransportInfo(transportInfo); - } - @Override protected IQ handleTransportReplace(Jingle transportReplace) { return state.handleTransportReplace(transportReplace); diff --git a/smack-experimental/src/main/java/org/jivesoftware/smackx/jingle_s5b/JingleS5BTransportHandler.java b/smack-experimental/src/main/java/org/jivesoftware/smackx/jingle_s5b/JingleS5BTransportHandler.java index 9fb2702ee..c6d75f4c5 100644 --- a/smack-experimental/src/main/java/org/jivesoftware/smackx/jingle_s5b/JingleS5BTransportHandler.java +++ b/smack-experimental/src/main/java/org/jivesoftware/smackx/jingle_s5b/JingleS5BTransportHandler.java @@ -52,9 +52,14 @@ public class JingleS5BTransportHandler implements JingleTransportHandler sessionHandler; + private JingleManager.FullJidAndSessionId fullJidAndSessionId; + private JingleContent receivedContent; + private JingleContent proposedContent; + private JingleTransportEstablishedCallback callback; private JingleS5BTransport myTransport; private JingleS5BTransportCandidate receivedCandidateUsed = null; + private JingleS5BTransportCandidate selectedCandidateUsed = null; private Socket connectedSocket = null; @@ -88,6 +93,10 @@ public class JingleS5BTransportHandler implements JingleTransportHandler receivedCandidateUsed.getPriority()) { + activateProxy(); + } else if (selectedCandidateUsed.getPriority() < receivedCandidateUsed.getPriority()) { + //createCandidateActive() + } else { //== } } }