diff options
author | chatty | 1993-04-07 11:50:31 +0000 |
---|---|---|
committer | chatty | 1993-04-07 11:50:31 +0000 |
commit | ba066c34dde204aa192d03a23a81356374d93731 (patch) | |
tree | 39391f6235d2cf8a59a0634ac5ea430cdd21f5d4 /comm/OLD/PortServerReq.h | |
parent | 05ab076e1c2a9ca16472f9a6b47b8d22914b3783 (diff) | |
download | ivy-league-ba066c34dde204aa192d03a23a81356374d93731.zip ivy-league-ba066c34dde204aa192d03a23a81356374d93731.tar.gz ivy-league-ba066c34dde204aa192d03a23a81356374d93731.tar.bz2 ivy-league-ba066c34dde204aa192d03a23a81356374d93731.tar.xz |
Initial revision
Diffstat (limited to 'comm/OLD/PortServerReq.h')
-rw-r--r-- | comm/OLD/PortServerReq.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/comm/OLD/PortServerReq.h b/comm/OLD/PortServerReq.h new file mode 100644 index 0000000..febde80 --- /dev/null +++ b/comm/OLD/PortServerReq.h @@ -0,0 +1,45 @@ +/* + * 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" + +enum PortServMessages { + PortServRegister, PortServRemove, PortServInquire, + PortServMatch, PortServEndMatch, PortServAnswer, + PortServFail, PortServDump, PortServQuit +}; + +class UchPortServerReq : public UchMessage { +public: + sword Type; + lword Host; + sword Port; + const char* 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 (UchMsgBuffer&, lword); + void WriteTo (UchMsgBuffer&); +}; + +#endif /* PortServerReq_H_ */ |