summaryrefslogtreecommitdiff
path: root/test/basicserver/testprotocol.txt
blob: 5bca9f49b66683d7863574fe86a40febfe78181b (plain)
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
# test protocol file

Name 			Test
IdentString		Test-0.00
ServerContextClass	TestContext	TestContext.h

BEGIN_OBJECTS

Error		0	IsError(Type,SubType)	Reply
	int32	Type
	int32	SubType

Hello		1	Command(Hello)	Reply
	int32	Number32
	int16	Number16
	int8	Number8
	string	Text

Lists		2	Command(ListsReply)
	vector<string>	LotsOfText

ListsReply	3	Reply
	int32	NumberOfStrings

Quit		4	Command(Quit)	Reply	EndsConversation

Simple		5	Command(SimpleReply)
	int32	Value

SimpleReply	6	Reply
	int32	ValuePlusOne

GetStream	7	Command(GetStream)	Reply
	int32	StartingValue
	bool	UncertainSize

SendStream	8	Command(GetStream)	StreamWithCommand
	int64	Value

String		9	Command(String)	Reply
	string	Test