/* * 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_ */