summaryrefslogtreecommitdiff
path: root/comm/OLD/PortServerReq.h
blob: 28ddc6102cf85c814b09acbf6228a5a1434e73f6 (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
43
44
45
46
/*
 *	The Unix Channel
 *
 *	by Michel Beaudouin-Lafon
 *
 *	Copyright 1990-1993
 *	Laboratoire de Recherche en Informatique (LRI)
 *
 *	Port server requests
 *
 *	$Id$
 *	$CurLog$
 */

#ifndef PortServerReq_H_
#define PortServerReq_H_

#include "MsgBuffer.h"
#include "Message.h"
#include "ccu/String.h"

enum	PortServMessages {
		PortServRegister, PortServRemove, PortServInquire,
		PortServMatch, PortServEndMatch, PortServAnswer,
		PortServFail, PortServDump, PortServQuit
};

class UchPortServerReq : public UchMessage {
public:
	sword		Type;
	lword		Host;
	sword		Port;
	CcuString	Key;
 	lword		Ident;
		
	UchPortServerReq ();
	UchPortServerReq (sword);
	UchPortServerReq (sword, lword, sword, lword, const char* = 0);
	~UchPortServerReq ();

inline	void	SetKey (const char* k)		{ Key = k; }
	void	ReadFrom (UchIOS&, lword);
	void	WriteTo (UchIOS&);
};

#endif /* PortServerReq_H_ */