25 lines
515 B
C++
25 lines
515 B
C++
#ifndef _CSocketMission_H_
|
|
#define _CSocketMission_H_
|
|
|
|
#include "SocketEngine.h"
|
|
|
|
class CSocketMission : public ISocketEngineSink
|
|
{
|
|
public:
|
|
CSocketMission(const char* url=0, int port=0);
|
|
virtual ~CSocketMission();
|
|
|
|
void setUrl(const char* url, int port);
|
|
bool start();
|
|
void stop();
|
|
bool isAlive() const;
|
|
bool send(int main, int sub);
|
|
bool send(int main, int sub, void* data, int size);
|
|
|
|
private:
|
|
CSocketEngine* mSocketEngine;
|
|
char mUrl[260];
|
|
int mPort;
|
|
}; // CSocketMission
|
|
|
|
#endif // _CSocketMission_H_
|