|
AndroMeta
2.0.0
|
00001 /* 00002 * Copyright 2009-2012 AndroMeta LLC. All rights reserved. 00003 * 00004 * AndroMeta LLC retains all intellectual property and proprietary 00005 * rights to this software and related documentation and any modifications 00006 * thereto. Any use, reproduction, disclosure, or distribution of this 00007 * software and related documentation without an express license agreement 00008 * from AndroMeta LLC is strictly prohibited. 00009 * 00010 */ 00011 00018 #ifndef ANDROMETA_M_CLIENT_H 00019 #define ANDROMETA_M_CLIENT_H 00020 00021 #include <AndroMeta/MVar.h> 00022 00023 namespace Meta{ 00024 00025 class MProcTask; 00026 class MNetProc; 00027 00039 class MClient{ 00040 public: 00041 00048 MClient(MProcTask* task); 00049 00053 virtual ~MClient(); 00054 00058 MProcTask* task(); 00059 00074 bool connect(const mstr& host, 00075 int port, 00076 const mstr& user="", 00077 const mstr& key="", 00078 const mvar& session=0); 00079 00086 virtual MNetProc* clientSpawn() = 0; 00087 00088 private: 00089 MClient& operator=(const MClient&); 00090 MClient(const MClient&); 00091 00092 class MClient_* x_; 00093 }; 00094 00095 } // end namespace Meta 00096 00097 #endif // ANDROMETA_M_CLIENT_H
1.7.6.1