/***************************************************************************
                ftsd ( File TranSfer Daemon ) Common Header
                -----------------------------------------
	begin      : 2010/02/25
	copyright  : (C) 2005 SolutionBox Inc.
	author     : Service 1 Team
	email      : svc1@solbox.com
	version    : 1.0

	CopyRight(C) 2005 SolutionBox Inc. All Rights reserved.
	Redistribution and use in source and binary forms, with or with out
	modification, are not permitted in outside of SolutionBox Inc.
***************************************************************************/

#ifndef __DEFINE_FTSD_H__
#define __DEFINE_FTSD_H__

#include <unistd.h>
#include <string>

#ifdef __cplusplus
extern "C" {
#endif

// Global Config object
struct st_config
{
	std::string szLogDir;
	std::string szStorageRoot;
	std::string szInternalNicName;
	int nLogLevel;
		
	int nWorkerProcessCount;
	int nMaxFileSendThread;
	int nFhsInternalIpCacheTimeout;
	int nProperStorageRefresPeriod;
	int nMaxBandwidthUse;
	st_config()
	{
		nWorkerProcessCount = 0;
		nMaxFileSendThread = 0;
		nFhsInternalIpCacheTimeout = 0;
		nProperStorageRefresPeriod = 0;
		nMaxBandwidthUse = 0;
		nLogLevel = 0;
	}
};

#ifdef __cplusplus
}
#endif

#endif /* __DEFINE_FTSD_H__ */

