Changes between Version 4 and Version 5 of MEDIA_ENGINE_IMPL_MAIN_R2


Ignore:
Timestamp:
08/24/09 18:05:44 (16 years ago)
Author:
nenko
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MEDIA_ENGINE_IMPL_MAIN_R2

    v4 v5  
    4242 
    4343= Design = 
    44 The communication between the C++ program and the Java program (Sophie2, except the demos) will be sequence of integers. Every sequence will be in the following format: <BR> 
    45 <size> <id> ... <BR> 
     44The communication between the C++ program and the Java program (Sophie2, except the demos) will be sequence of integers. We chose integers over string because there are too many encodings for strings. Every integer sequence will be in the following format: [[BR]] 
     45<size> <id> ... [[BR]] 
    4646<size> and <id> are mandatory and their meanings are : 
    4747 * size - the length of the integer sequence 
     
    5050Example(start command, whose id is 0) : 2 0  
    5151 
     52The communication will be in the following way: 
     53 * the Java program sends a command through the standard input of the C++ process 
     54 * the C++ program creates a respones on the base of the command 
     55 * the C++ program returns the reposne through its standard output 
     56 * the Java program receives the respone and acts on the base of it 
     57 
     58This means that the Java program will be blocked until it recieves mething from the standard input of the process so the Java wrapper will be in separate thread. Also the control of the C++ application will be in the Java part - it will run and stop it. 
     59 
     60The flow of communication written above is common for all other wrapers and native applications. This code will reside in classes called Bridges. [[BR]] 
     61There will be some common commands and responses: 
     62 * StartCommand 
     63 * StopCommand 
     64 * OkResponse 
     65 * ErrorResponse 
     66 
     67Design of the C++ part: 
     68 
     69Design of the Java part: 
    5270= Implementation = 
    5371^(Describe and link the implementation results here (from the wiki or the repository).)^