Changes between Version 4 and Version 5 of MEDIA_ENGINE_IMPL_MAIN_R2
- Timestamp:
- 08/24/09 18:05:44 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MEDIA_ENGINE_IMPL_MAIN_R2
v4 v5 42 42 43 43 = 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>44 The 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]] 46 46 <size> and <id> are mandatory and their meanings are : 47 47 * size - the length of the integer sequence … … 50 50 Example(start command, whose id is 0) : 2 0 51 51 52 The 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 58 This 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 60 The flow of communication written above is common for all other wrapers and native applications. This code will reside in classes called Bridges. [[BR]] 61 There will be some common commands and responses: 62 * StartCommand 63 * StopCommand 64 * OkResponse 65 * ErrorResponse 66 67 Design of the C++ part: 68 69 Design of the Java part: 52 70 = Implementation = 53 71 ^(Describe and link the implementation results here (from the wiki or the repository).)^