Changes between Version 9 and Version 10 of WikiStart


Ignore:
Timestamp:
03/11/19 13:45:47 (6 years ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v9 v10  
    3333
    3434
     35
     36
    3537== The source code
    3638You can read the source code through the "Browse source" button at the top of this page. You can check out the source code through svn with
     
    3941}}}
    4042
     43
     44=Technical insides
     45
     46This section deals with the techniques inside the runserver and may be relevant when you need to communicate directly with it, e.g. when you build your own GUI or start up your own sessions and tournaments from a script.
     47
     48==Communication protocol
     49
     50This section describes the communication protocols with the runserver. Other implementations of a runserver should adhere to the same communication protocols to ensure compatibility with genius2.
     51
     52=== RunSession
     53The main service available on the runserver is the RunSession service. It is available at http://runserver/runsession.
     54This service starts up and runs a complete session when it is accessed (http get or post).
     55To start a session, the http get must include a JSON-serialized genius2.protocol.session.SessionSettings object. Typically this looks like this (assuming you want to use SAOP protocol):
     56{{{
     57{"SAOPSettings": {
     58    "participants":[
     59        {"party":"http://party1","profile":"ws://profile1"},
     60        {"party":"http://party2","profile":"ws://profile2"}],
     61    "deadline":{"deadlinetime":{"millis":100}}
     62}}
     63}}}
     64
     65The "SAOPSettings" indicates that these settings are SAOPSettings and (see Settings.getProtocol) will be interpreted by the SAOP protocol.
     66
     67The participants is a list with PartyWithProfile items: a "party" field containing a http address on a partiesserver, and a "profile" field containing a websocket address on a profilesserver.
     68
     69The deadline contains the deadline for the SAOP, which is how long the negotiation can last.
     70
     71