54 lines
1.3 KiB
C++
54 lines
1.3 KiB
C++
/***************************************************************************
|
|
FHS Control Class Header ( FhsControl.h )
|
|
-----------------------------------------
|
|
|
|
begin : 2013/02/26
|
|
copyright : (C) 2013 Solbox Inc.
|
|
author : Development 1 Team
|
|
- 2013/02/26 - 1st dadamin
|
|
email : dev1@solbox.com
|
|
version : 3.2.0
|
|
|
|
CopyRight(C) 2005 Solbox Inc. All Rights reserved.
|
|
Redistribution and use in source and binary forms, with or with out
|
|
modification, are not permitted in outside of Solbox Inc.
|
|
***************************************************************************/
|
|
#ifndef __FHS_CONTROL_H__
|
|
#define __FHS_CONTROL_H__
|
|
|
|
#include "FtsdSocketControl.h"
|
|
|
|
class CFhsControl
|
|
{
|
|
public:
|
|
CFhsControl();
|
|
~CFhsControl();
|
|
|
|
bool Create(const char * rcid, const char * IP, int Port, bool isBroadcast);
|
|
|
|
bool MkServiceRootDir(CJobDataMap & jobData);
|
|
bool GetFront10MMD5(CJobDataMap & jobData);
|
|
bool SendAnonyDir(CJobDataMap & jobData, string targeturi);
|
|
|
|
bool GetTotoExtractWithplatform(CJobDataMap & jobData);
|
|
|
|
bool IsCreated();
|
|
protected:
|
|
|
|
private:
|
|
|
|
unsigned int ConversionAddr( const char * name );
|
|
|
|
// broadcast
|
|
int m_broadcastfd;
|
|
struct sockaddr_in m_broadcastAddr;
|
|
// ftsd
|
|
CFtsdSocketControl m_ftsd;
|
|
|
|
bool m_bcreated;
|
|
string m_rcid;
|
|
};
|
|
|
|
|
|
#endif // __FHS_CONTROL_H__
|