mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-22 07:39:53 +01:00
Segmented plugin interfaces should extend general plugin interfaces.
This commit is contained in:
@@ -1,12 +1,13 @@
|
|||||||
package net.sf.briar.api.plugins.duplex;
|
package net.sf.briar.api.plugins.duplex;
|
||||||
|
|
||||||
import net.sf.briar.api.ContactId;
|
import net.sf.briar.api.ContactId;
|
||||||
|
import net.sf.briar.api.plugins.Plugin;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An interface for transport plugins that support duplex segmented
|
* An interface for transport plugins that support duplex segmented
|
||||||
* communication.
|
* communication.
|
||||||
*/
|
*/
|
||||||
public interface DuplexSegmentedPlugin {
|
public interface DuplexSegmentedPlugin extends Plugin {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Attempts to create and return a connection to the given contact using
|
* Attempts to create and return a connection to the given contact using
|
||||||
|
|||||||
@@ -1,12 +1,13 @@
|
|||||||
package net.sf.briar.api.plugins.duplex;
|
package net.sf.briar.api.plugins.duplex;
|
||||||
|
|
||||||
import net.sf.briar.api.ContactId;
|
import net.sf.briar.api.ContactId;
|
||||||
|
import net.sf.briar.api.plugins.PluginCallback;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An interface for handling connections created by a duplex segmented
|
* An interface for handling connections created by a duplex segmented
|
||||||
* transport plugin.
|
* transport plugin.
|
||||||
*/
|
*/
|
||||||
public interface DuplexSegmentedPluginCallback {
|
public interface DuplexSegmentedPluginCallback extends PluginCallback {
|
||||||
|
|
||||||
void incomingConnectionCreated(DuplexSegmentedTransportConnection d);
|
void incomingConnectionCreated(DuplexSegmentedTransportConnection d);
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,13 @@
|
|||||||
package net.sf.briar.api.plugins.simplex;
|
package net.sf.briar.api.plugins.simplex;
|
||||||
|
|
||||||
import net.sf.briar.api.ContactId;
|
import net.sf.briar.api.ContactId;
|
||||||
|
import net.sf.briar.api.plugins.Plugin;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An interface for transport plugins that support simplex segmented
|
* An interface for transport plugins that support simplex segmented
|
||||||
* communication.
|
* communication.
|
||||||
*/
|
*/
|
||||||
public interface SimplexSegmentedPlugin {
|
public interface SimplexSegmentedPlugin extends Plugin {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Attempts to create and return a reader for the given contact using the
|
* Attempts to create and return a reader for the given contact using the
|
||||||
|
|||||||
@@ -1,12 +1,13 @@
|
|||||||
package net.sf.briar.api.plugins.simplex;
|
package net.sf.briar.api.plugins.simplex;
|
||||||
|
|
||||||
import net.sf.briar.api.ContactId;
|
import net.sf.briar.api.ContactId;
|
||||||
|
import net.sf.briar.api.plugins.PluginCallback;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An interface for handling readers and writers created by a simplex
|
* An interface for handling readers and writers created by a simplex
|
||||||
* segmented transport plugin.
|
* segmented transport plugin.
|
||||||
*/
|
*/
|
||||||
public interface SimplexSegmentedPluginCallback {
|
public interface SimplexSegmentedPluginCallback extends PluginCallback {
|
||||||
|
|
||||||
void readerCreated(SimplexSegmentedTransportReader r);
|
void readerCreated(SimplexSegmentedTransportReader r);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user