summaryrefslogtreecommitdiff
path: root/jsonrpc/src/main/java/com/orbekk/same/SameService.java
AgeCommit message (Collapse)Author
2012-01-13Rename projects.Kjetil Ørbekk
– jsonrpc → same – master → same-android
2012-01-11Add participant synchronization.Kjetil Ørbekk
- No error handling in the protocol at the moment.
2012-01-11Implement master functionality.Kjetil Ørbekk
- The first participant in the network is considered the master. - Forward join requests to the master.
2012-01-11Improve participant handling.Kjetil Ørbekk
- Send correct list of participants in notifyParticipation(). - Add self to list of participants.
2012-01-11Add IP discovery.Kjetil Ørbekk
Before a client wants to join a network, it may send a HTTP "ping" request to a known participant. The participant will send a HTTP "pong" request in response, which informs the client of its IP address. The IP address of a client is automatically retrieved from the first HTTP request received by Jetty.
2012-01-11Continue SameService implementation.Kjetil Ørbekk
- 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.
2012-01-10Add SameState class to manage the state of a client.Kjetil Ørbekk
The SameState class manages a view of the 'Same' network. Some functionality was moved from SameServiceImpl to SameState.
2012-01-10Start implementing SameService.Kjetil Ørbekk
Start implementing the controller service for this project. "Same" refers to the shared global state – the state should be the Same in all the participants. Removes PingService.