mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
Use strings rather than hashes to identify transports. Dev task #64.
This commit is contained in:
@@ -27,11 +27,7 @@ import org.briarproject.util.StringUtils;
|
||||
|
||||
class ModemPlugin implements DuplexPlugin, Modem.Callback {
|
||||
|
||||
static final byte[] TRANSPORT_ID =
|
||||
StringUtils.fromHexString("8f573867bedf54884b5868ee5d902832" +
|
||||
"ee5e522da84d0d431712bd672fbd2f79" +
|
||||
"262d27b93879b94ee9afbb80e7fc87fb");
|
||||
static final TransportId ID = new TransportId(TRANSPORT_ID);
|
||||
static final TransportId ID = new TransportId("modem");
|
||||
|
||||
private static final Logger LOG =
|
||||
Logger.getLogger(ModemPlugin.class.getName());
|
||||
@@ -65,10 +61,6 @@ class ModemPlugin implements DuplexPlugin, Modem.Callback {
|
||||
return ID;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return "MODEM_PLUGIN_NAME";
|
||||
}
|
||||
|
||||
public int getMaxFrameLength() {
|
||||
return maxFrameLength;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user