// PupEchoServ.decl

// Last modified January 26, 1979  2:48 PM by Boggs

manifest
[
// registered, well-known socket
psEchoServ = 5

// registered pup types
ptEchoMe = 1
ptImAnEcho = 2
ptImABadEcho = 3

// Echo socket specific pup types
ptStatsRequest = 200b
ptStatsReply = 201b

echoStatsVersion = 1
]

//----------------------------------------------------------------------------
structure Stats:	// Echo Server Statistics
//----------------------------------------------------------------------------
[
version word		// = echoStatsVersion
packetsEchoed word 2	// # of packets echoed
]

//----------------------------------------------------------------------------
structure ES:		// 'global frame' for Echo Server
//----------------------------------------------------------------------------
[
zone word		// -> storage zone
ctxQ word		// -> ctxQ
soc word		// -> Echo socket
ctx word		// -> Echo CTX
stats @Stats
]
manifest lenES = size ES/16