00001 /*****************************************************************************
00002 * Author: Valient Gough <vgough@pobox.com>
00003 *
00004 *****************************************************************************
00005 * Copyright (c) 2001, Valient Gough
00006 *
00007 * This library is free software; you can distribute it and/or modify it under
00008 * the terms of the GNU Lesser General Public License (LGPL), as published by
00009 * the Free Software Foundation; either version 2.1 of the License, or (at your
00010 * option) any later version.
00011 *
00012 * This library is distributed in the hope that it will be useful, but WITHOUT
00013 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00014 * FITNESS FOR A PARTICULAR PURPOSE. See the LGPL in the file COPYING for more
00015 * details.
00016 *
00017 */
00018
00019 #ifndef _PipeClient_incl_
00020 #define _PipeClient_incl_
00021
00022 #include <rel/TypeStream.h>
00023
00024 #include <string>
00025
00026 namespace rel
00027 {
00028
00029 class PipeClient
00030 {
00031 public:
00032
00033 PipeClient();
00034 ~PipeClient();
00035
00036 SmartPtr<TypeStream> connectToServer(const char *serverConnectionFile);
00037
00038
00039 static int openWriteChannel(const char *fileName);
00040 static int createReadChannel(const char *fileName);
00041 static std::string newPipeName();
00042 static bool createPipe(const char *fileName);
00043 };
00044
00045 } // namespace rel
00046
00047 #endif
00048
1.2.10 written by Dimitri van Heesch,
© 1997-2001