Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

mps.h

Go to the documentation of this file.
00001 /* -*- c++ -*- */
00002 /**************************************************************************
00003  Copyright (c) 2000-2001, Tony Garnock-Jones
00004  All rights reserved.
00005 
00006  Redistribution and use in source and binary forms, with or without
00007  modification, are permitted provided that the following conditions are
00008  met:
00009 
00010      * Redistributions of source code must retain the above copyright
00011        notice, this list of conditions and the following disclaimer.
00012 
00013      * Redistributions in binary form must reproduce the above
00014        copyright notice, this list of conditions and the following
00015        disclaimer in the documentation and/or other materials provided
00016        with the distribution.
00017 
00018      * Neither the names of the copyright holders nor the names of this
00019        software's contributors may be used to endorse or promote
00020        products derived from this software without specific prior
00021        written permission.
00022 
00023  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00024  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00025  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
00026  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR
00027  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
00028  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
00029  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
00030  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
00031  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
00032  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
00033  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00034 **************************************************************************/
00035 
00036 #ifndef MPS_H
00037 #define MPS_H
00038 
00039 #include <stdlib.h>
00040 #include <stdio.h>
00041 #include <string.h>
00042 
00043 #include <sys/types.h>
00044 #include <sys/time.h>
00045 #include <unistd.h>
00046 
00047 #include <string>
00048 #include <vector>
00049 #include <map>
00050 
00051 ///////////////////////////////////////////////////////////////////////////
00052 
00053 #include <mps/ref.h>
00054 #include <mps/exception.h>
00055 
00056 #include <mps/interface.h>
00057 #include <mps/stream.h>
00058 #include <mps/address.h>
00059 #include <mps/connection.h>
00060 
00061 #include <mps/proxy.h>
00062 #include <mps/server.h>
00063 
00064 #include <mps/transport.h>
00065 
00066 ///////////////////////////////////////////////////////////////////////////
00067 
00068 #include <mps/mpsnaming.h>
00069 
00070 namespace MPS {
00071 typedef org::hebe::mps::naming::NamingService NamingService;
00072 typedef org::hebe::mps::naming::Binding NameBinding;
00073 
00074 /**
00075  * Returns a reference to a naming service, from the address passed
00076  * in. If no address (or the empty string) is passed in, uses the
00077  * contents of the environment variable MPS_NAMESERVER as the address
00078  * to use; if this environment variable is absent, uses a hardcoded
00079  * default. */
00080 extern ref<NamingService> getNamingService(string nsAddress = "");
00081 }
00082 
00083 #ifdef __WIN32__
00084 extern "C" {
00085   extern char *MPS_optarg;
00086   extern int MPS_optind;
00087   extern int MPS_opterr;
00088   extern int MPS_optopt;
00089   extern int MPS_getopt(int argc, char *argv[], char *optspec);
00090 };
00091 #else
00092 #define MPS_optarg optarg
00093 #define MPS_optind optind
00094 #define MPS_opterr opterr
00095 #define MPS_optopt optopt
00096 #define MPS_getopt getopt
00097 #endif
00098 
00099 #endif

Generated at Wed Aug 15 01:05:15 2001 for mps-cpp by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001