Double-check the initiator flag and transport ID of incoming

connections, and invert the flag for the responder's side.
This commit is contained in:
akwizgran
2011-10-15 14:15:25 +01:00
parent 2618fea0eb
commit 89001e4c91
8 changed files with 31 additions and 24 deletions

View File

@@ -10,5 +10,5 @@ public interface ConnectionWriterFactory {
boolean initiator, TransportId t, long connection, byte[] secret);
ConnectionWriter createConnectionWriter(OutputStream out, long capacity,
byte[] encryptedIv, byte[] secret);
TransportId t, byte[] encryptedIv, byte[] secret);
}

View File

@@ -5,8 +5,8 @@ import net.sf.briar.api.TransportId;
public interface StreamConnectionFactory {
void createIncomingConnection(ContactId c, StreamTransportConnection s,
byte[] encryptedIv);
void createIncomingConnection(TransportId t, ContactId c,
StreamTransportConnection s, byte[] encryptedIv);
void createOutgoingConnection(TransportId t, ContactId c,
StreamTransportConnection s);