You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.0 KiB

2 years ago
​
​
​
​
​
2 years ago
2 years ago
​
​
​
​
​
​
​
​
​
​
2 years ago
​
​
2 years ago
​
2 years ago
2 years ago
​
​
​
​
​
  1. #ifndef __ARGUS_SERVER_A_REMOTE_CONNECTOR__
  2. #define __ARGUS_SERVER_A_REMOTE_CONNECTOR__
  3. #include "../../data/net/netServer.h"
  4. class servaKernel;
  5. class servaRPCHadnler;
  6. class servaRemoteClient: public networkServer, public networkServiceEngine{
  7. private:
  8. servaKernel *m_pMaster;
  9. protected:
  10. static servaRemoteClient * _instance;
  11. explicit servaRemoteClient( servaKernel *ptr );
  12. public:
  13. virtual ~servaRemoteClient();
  14. virtual networkClientHandler * attachNewClient( int SocketID, void *ptr = NULL );
  15. virtual bool detachClient( networkClientHandler *ptr );
  16. static servaRemoteClient * getInstance( servaKernel *ptr );
  17. char getMojoWorkMode( uint64_t id );
  18. uint64_t requestMojoRegistration( CSTR a, CSTR b );
  19. virtual bool start();
  20. virtual bool stop( bool force = true );
  21. friend class servaRPCHadnler;
  22. };
  23. #endif