/* * The Unix Channel * * by Michel Beaudouin-Lafon * * Copyright 1990-1993 * Laboratoire de Recherche en Informatique (LRI) * * Port server requests * * $Id$ * $CurLog$ */ #include "PortServerReq.h" #include "Channel.h" UchPortServerReq :: UchPortServerReq () : UchMessage (), Type (0), Host (0), Port (0), Ident (0), Key (0) { } UchPortServerReq :: UchPortServerReq (sword t) : Type (t), Host (0), Port (0), Ident (0), Key (0) { } UchPortServerReq :: UchPortServerReq (sword t, lword h, sword p, lword i, const char* k) : Type (t), Host (h), Port (p), Ident (i), Key (k) { } UchPortServerReq :: ~UchPortServerReq () { } void UchPortServerReq :: ReadFrom (UchIOS& b, lword) { b >> Type >> Host >> Port >> Ident >> Key; // Key = b.BufLength () ? (const char*) b.Buffer () : 0; } void UchPortServerReq :: WriteTo (UchIOS& b) { b << Type << Host << Port << Ident << Key; }