blob: dac38b6259ea60bb7c5fda6364db99e9408daf81 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd-->
<html xmlns="http://www.w3.org/1999/xhtml"
>
<head><title>Create a new protocol</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="generator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)" />
<meta name="originator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)" />
<!-- xhtml,3,next,html -->
<meta name="src" content="etrice-doc.tex" />
<meta name="date" content="2013-03-26 21:41:00" />
<link rel="stylesheet" type="text/css" href="etrice-doc.css" />
</head><body
>
<!--l. 61--><div class="crosslinks"><p class="noindent">[<a
href="etrice-docse24.html" >next</a>] [<a
href="etrice-docse22.html" >prev</a>] [<a
href="etrice-docse22.html#tailetrice-docse22.html" >prev-tail</a>] [<a
href="#tailetrice-docse23.html">tail</a>] [<a
href="etrice-docch7.html#etrice-docse23.html" >up</a>] </p></div>
<h3 class="sectionHead"><span class="titlemark">7.4 </span> <a
id="x32-460007.4"></a>Create a new protocol</h3>
<!--l. 63--><p class="noindent" >With the help of <span
class="ecti-1000">Content Assist </span>create a <span
class="ecti-1000">ProtocolClass </span>and name it <span
class="ecti-1000">PingPongProtocol</span>. Create the
following messages:
</p>
<div class="verbatim" id="verbatim-12">
ProtocolClass PingPongProtocol {
 <br />    incoming {
 <br />        Message ping(data: DemoData)
 <br />        Message pingSimple(data:int32)
 <br />    }
 <br />    outgoing {
 <br />        Message pong(data: DemoData)
 <br />        Message pongSimple(data:int32)
 <br />    }
 <br />}
</div>
<!--l. 76--><p class="nopar" >
</p>
<!--l. 78--><div class="crosslinks"><p class="noindent">[<a
href="etrice-docse24.html" >next</a>] [<a
href="etrice-docse22.html" >prev</a>] [<a
href="etrice-docse22.html#tailetrice-docse22.html" >prev-tail</a>] [<a
href="etrice-docse23.html" >front</a>] [<a
href="etrice-docch7.html#etrice-docse23.html" >up</a>] </p></div>
<!--l. 78--><p class="noindent" ><a
id="tailetrice-docse23.html"></a> </p>
</body></html>
|