Difference between revisions of "EMU/Protocol"

m (Client)
m (Server)
Line 31: Line 31:
  
 
====Server====
 
====Server====
login_accepted
+
* login_accepted
  
login_denied
+
* login_denied
  
update
+
* update
 
class files
 
class files
  
unlock_request_granted
+
* unlock_request_granted
 
checks status
 
checks status
 
sets status
 
sets status
  
unlock_request_denied
+
* unlock_request_denied
 
status information
 
status information
  
lock_status
+
* lock_status
 
send status information of all classes
 
send status information of all classes
  
online_status
+
* online_status
 
send status of users online
 
send status of users online
  
server_down
+
* server_down
 
send information about server down
 
send information about server down
  
send_message
+
* send_message
 
send a message to all clients
 
send a message to all clients

Revision as of 08:38, 17 May 2006

Messages

Messages are encapsulated within objects that are being transmitted over the network.

Client

  • login

version projectname username password

  • update_request

wants to receive new files

  • unlock_request

wants to edit a code chunk

  • upload_chunk

upload an edited chunk

  • relock_request

wants to end locking session

  • lock_status_request

get information about all classes

  • online_status_request

get information about online users

  • logout

informs about a logout of the client

Server

  • login_accepted
  • login_denied
  • update

class files

  • unlock_request_granted

checks status sets status

  • unlock_request_denied

status information

  • lock_status

send status information of all classes

  • online_status

send status of users online

  • server_down

send information about server down

  • send_message

send a message to all clients