mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
Simple TCP socket plugin (untested).
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package net.sf.briar.api.transport.batch;
|
||||
|
||||
import net.sf.briar.api.ContactId;
|
||||
import net.sf.briar.api.TransportId;
|
||||
import net.sf.briar.api.transport.TransportCallback;
|
||||
|
||||
/**
|
||||
@@ -12,6 +11,5 @@ public interface BatchTransportCallback extends TransportCallback {
|
||||
|
||||
void readerCreated(BatchTransportReader r);
|
||||
|
||||
void writerCreated(ContactId contactId, TransportId t, long connection,
|
||||
BatchTransportWriter w);
|
||||
void writerCreated(ContactId contactId, BatchTransportWriter w);
|
||||
}
|
||||
|
||||
@@ -50,10 +50,10 @@ public interface BatchTransportPlugin {
|
||||
boolean shouldPoll();
|
||||
|
||||
/**
|
||||
* Returns the desired interval in seconds between calls to the plugin's
|
||||
* poll() method.
|
||||
* Returns the desired interval in milliseconds between calls to the
|
||||
* plugin's poll() method.
|
||||
*/
|
||||
int getPollingInterval();
|
||||
long getPollingInterval();
|
||||
|
||||
/**
|
||||
* Attempts to establish incoming and/or outgoing connections using the
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package net.sf.briar.api.transport.stream;
|
||||
|
||||
import net.sf.briar.api.ContactId;
|
||||
import net.sf.briar.api.TransportId;
|
||||
import net.sf.briar.api.transport.TransportCallback;
|
||||
|
||||
/**
|
||||
@@ -12,6 +11,6 @@ public interface StreamTransportCallback extends TransportCallback {
|
||||
|
||||
void incomingConnectionCreated(StreamTransportConnection c);
|
||||
|
||||
void outgoingConnectionCreated(ContactId contactId, TransportId t,
|
||||
long connection, StreamTransportConnection c);
|
||||
void outgoingConnectionCreated(ContactId contactId,
|
||||
StreamTransportConnection c);
|
||||
}
|
||||
|
||||
@@ -28,5 +28,5 @@ public interface StreamTransportConnection {
|
||||
* connection is not used, or if an exception is thrown while using the
|
||||
* connection.
|
||||
*/
|
||||
void close() throws IOException;
|
||||
void dispose() throws IOException;
|
||||
}
|
||||
|
||||
@@ -49,10 +49,10 @@ public interface StreamTransportPlugin {
|
||||
boolean shouldPoll();
|
||||
|
||||
/**
|
||||
* Returns the desired interval in seconds between calls to the plugin's
|
||||
* poll() method.
|
||||
* Returns the desired interval in milliseconds between calls to the
|
||||
* plugin's poll() method.
|
||||
*/
|
||||
int getPollingInterval();
|
||||
long getPollingInterval();
|
||||
|
||||
/**
|
||||
* Attempts to establish connections using the current transport and
|
||||
|
||||
Reference in New Issue
Block a user