|
mbsiminterface
1.0.0
|
00001 /* Copyright (C) 2013 Markus Schneider 00002 00003 * This library is free software; you can redistribute it and/or 00004 * modify it under the terms of the GNU Lesser General Public 00005 * License as published by the Free Software Foundation; either 00006 * version 2.1 of the License, or (at your option) any later version. 00007 * 00008 * This library is distributed in the hope that it will be useful, 00009 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 * Lesser General Public License for more details. 00012 * 00013 * You should have received a copy of the GNU Lesser General Public 00014 * License along with this library; if not, write to the Free Software 00015 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00016 00017 * 00018 * Contact: 00019 * markus.ms.schneider@live.de 00020 * 00021 */ 00022 00023 #ifndef _MBSIMSERVER_H_ 00024 #define _MBSIMSERVER_H_ 00025 00026 namespace MBSimInterface { 00027 00028 class InterfaceIntegrator; 00029 00030 class MBSimServer { 00031 public: 00032 MBSimServer() {} 00033 MBSimServer(InterfaceIntegrator* ii_) {ii=ii_; } 00034 virtual void start() {}; 00035 protected: 00036 InterfaceIntegrator* ii; 00037 }; 00038 00039 class MBSimTcpServer : public MBSimServer { 00040 public: 00041 MBSimTcpServer(InterfaceIntegrator *ii, unsigned short port); 00042 void start(); 00043 private: 00044 unsigned int port; 00045 }; 00046 00047 class MBSimUdpServer : public MBSimServer { 00048 public: 00049 MBSimUdpServer(InterfaceIntegrator *ii, unsigned short port); 00050 void start(); 00051 private: 00052 unsigned int port; 00053 }; 00054 00055 } 00056 00057 #endif
1.8.0