diff options
author | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-01-11 10:47:27 +0100 |
---|---|---|
committer | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-01-11 10:47:27 +0100 |
commit | 52088a08a9edb6d4b60e1e8923e1b3199db9f391 (patch) | |
tree | 191f3bbde90eb14b011c772c27a5f67aff28049e /jsonrpc/src/main/java/com/orbekk/same/SameService.java | |
parent | 5befe48a4cca6121cbce7f7fd5436cfc09f643f0 (diff) |
Continue SameService implementation.
- Implement ConnectionManager.
- SameService now calls notifyParticipation() when a client tries to
join.
- Add client ids – this may or may not be a good idea.
- Refactor App and Client code.
Diffstat (limited to 'jsonrpc/src/main/java/com/orbekk/same/SameService.java')
-rw-r--r-- | jsonrpc/src/main/java/com/orbekk/same/SameService.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/jsonrpc/src/main/java/com/orbekk/same/SameService.java b/jsonrpc/src/main/java/com/orbekk/same/SameService.java index d18cb9d..0a261a8 100644 --- a/jsonrpc/src/main/java/com/orbekk/same/SameService.java +++ b/jsonrpc/src/main/java/com/orbekk/same/SameService.java @@ -13,8 +13,14 @@ public interface SameService { /** * A request from the callee to participate in 'networkName'. + * + * A client may not know its URL. If the url parameter is empty, + * use info from the HttpServletRequest. + * + * TODO: Always pass a valid URL and get rid of the port parameter. */ - void participateNetwork(String networkName, int remotePort); + void participateNetwork(String networkName, String clientId, + String url, int remotePort); /** * Notification of participation in network. |