blob: 66e29357e7ee3a20fdb77f2f73b2915559b8454d (
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-06-13 15:30:00" />
<link rel="stylesheet" type="text/css" href="etrice-doc.css" />
</head><body
>
<!--l. 64--><div class="crosslinks"><p class="noindent">[<a
href="etrice-docse21.html" >next</a>] [<a
href="etrice-docse19.html" >prev</a>] [<a
href="etrice-docse19.html#tailetrice-docse19.html" >prev-tail</a>] [<a
href="#tailetrice-docse20.html">tail</a>] [<a
href="etrice-docch7.html#etrice-docse20.html" >up</a>] </p></div>
<h3 class="sectionHead"><span class="titlemark">7.4 </span> <a
id="x29-480007.4"></a>Create a new protocol</h3>
<!--l. 66--><p class="noindent" >With the help of <span
class="ec-lmsso-10">Content Assist </span>create a <span
class="ec-lmsso-10">ProtocolClass </span>and name it <span
class="ec-lmsso-10">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. 80--><p class="nopar" >
</p>
<!--l. 82--><div class="crosslinks"><p class="noindent">[<a
href="etrice-docse21.html" >next</a>] [<a
href="etrice-docse19.html" >prev</a>] [<a
href="etrice-docse19.html#tailetrice-docse19.html" >prev-tail</a>] [<a
href="etrice-docse20.html" >front</a>] [<a
href="etrice-docch7.html#etrice-docse20.html" >up</a>] </p></div>
<!--l. 82--><p class="noindent" ><a
id="tailetrice-docse20.html"></a> </p>
</body></html>
|