Protocol Buffers will be used for the wire protocol. As a quick test it's now used to serialize transport details when creating an invitation.

This commit is contained in:
akwizgran
2011-07-07 22:10:02 +01:00
parent 7fb589075d
commit 4deb52478d
11 changed files with 1212 additions and 17 deletions

View File

@@ -59,6 +59,9 @@ public interface DatabaseComponent {
/** Returns the set of groups to which the user subscribes. */
Set<GroupId> getSubscriptions() throws DbException;
/** Returns the local transport details. */
Map<String, String> getTransports() throws DbException;
/** Returns the transport details for the given contact. */
Map<String, String> getTransports(ContactId c) throws DbException;

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,13 @@
package protocol;
option java_package = "net.sf.briar.api.protocol";
message TransportDetails {
message TransportDetail {
required string key = 1;
optional string value = 2;
}
repeated TransportDetail details = 1;
}