mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
attempt to fixed leading tabs
This commit is contained in:
parent
1c2cfb2a03
commit
29b5bfe049
@ -62,7 +62,7 @@ const int ftserverzone = 29539;
|
||||
|
||||
static const time_t FILE_TRANSFER_LOW_PRIORITY_TASKS_PERIOD = 5 ; // low priority tasks handling every 5 seconds
|
||||
|
||||
/* Setup */
|
||||
/* Setup */
|
||||
ftServer::ftServer(p3PeerMgr *pm, p3ServiceControl *sc)
|
||||
: p3Service(),
|
||||
mPeerMgr(pm), mServiceCtrl(sc),
|
||||
@ -107,9 +107,9 @@ void ftServer::setConfigDirectory(std::string path)
|
||||
RsDirUtil::checkCreateDirectory(remotecachedir) ;
|
||||
}
|
||||
|
||||
/* Control Interface */
|
||||
/* Control Interface */
|
||||
|
||||
/* add Config Items (Extra, Controller) */
|
||||
/* add Config Items (Extra, Controller) */
|
||||
void ftServer::addConfigComponents(p3ConfigMgr */*mgr*/)
|
||||
{
|
||||
/* NOT SURE ABOUT THIS ONE */
|
||||
@ -125,7 +125,7 @@ const RsPeerId& ftServer::OwnId()
|
||||
return null_id ;
|
||||
}
|
||||
|
||||
/* Final Setup (once everything is assigned) */
|
||||
/* Final Setup (once everything is assigned) */
|
||||
void ftServer::SetupFtServer()
|
||||
{
|
||||
|
||||
@ -352,7 +352,7 @@ uint32_t ftServer::getQueueSize()
|
||||
{
|
||||
return mFtController->getQueueSize() ;
|
||||
}
|
||||
/* Control of Downloads Priority. */
|
||||
/* Control of Downloads Priority. */
|
||||
bool ftServer::changeQueuePosition(const RsFileHash& hash, QueueMove mv)
|
||||
{
|
||||
mFtController->moveInQueue(hash,mv) ;
|
||||
@ -387,7 +387,7 @@ void ftServer::requestDirUpdate(void *ref)
|
||||
mFileDatabase->requestDirUpdate(ref) ;
|
||||
}
|
||||
|
||||
/* Directory Handling */
|
||||
/* Directory Handling */
|
||||
void ftServer::setDownloadDirectory(std::string path)
|
||||
{
|
||||
mFtController->setDownloadDirectory(path);
|
||||
@ -699,9 +699,9 @@ int ftServer::SearchBoolExp(RsRegularExpression::Expression * exp, std::list<Dir
|
||||
return mFileDatabase->SearchBoolExp(exp,results,flags,peer_id) ;
|
||||
}
|
||||
|
||||
/***************************************************************/
|
||||
/*************** Local Shared Dir Interface ********************/
|
||||
/***************************************************************/
|
||||
/***************************************************************/
|
||||
/*************** Local Shared Dir Interface ********************/
|
||||
/***************************************************************/
|
||||
|
||||
bool ftServer::ConvertSharedFilePath(std::string path, std::string &fullpath)
|
||||
{
|
||||
@ -838,18 +838,18 @@ bool ftServer::shareDownloadDirectory(bool share)
|
||||
}
|
||||
}
|
||||
|
||||
/***************************************************************/
|
||||
/****************** End of RsFiles Interface *******************/
|
||||
/***************************************************************/
|
||||
/***************************************************************/
|
||||
/****************** End of RsFiles Interface *******************/
|
||||
/***************************************************************/
|
||||
|
||||
//bool ftServer::loadConfigMap(std::map<std::string, std::string> &/*configMap*/)
|
||||
//{
|
||||
// return true;
|
||||
//}
|
||||
|
||||
/***************************************************************/
|
||||
/********************** Data Flow **********************/
|
||||
/***************************************************************/
|
||||
/***************************************************************/
|
||||
/********************** Data Flow **********************/
|
||||
/***************************************************************/
|
||||
|
||||
bool ftServer::sendTurtleItem(const RsPeerId& peerId,const RsFileHash& hash,RsTurtleGenericTunnelItem *item)
|
||||
{
|
||||
@ -886,7 +886,7 @@ bool ftServer::sendTurtleItem(const RsPeerId& peerId,const RsFileHash& hash,RsTu
|
||||
return true ;
|
||||
}
|
||||
|
||||
/* Client Send */
|
||||
/* Client Send */
|
||||
bool ftServer::sendDataRequest(const RsPeerId& peerId, const RsFileHash& hash, uint64_t size, uint64_t offset, uint32_t chunksize)
|
||||
{
|
||||
#ifdef SERVER_DEBUG
|
||||
@ -1048,7 +1048,7 @@ bool ftServer::sendSingleChunkCRC(const RsPeerId& peerId,const RsFileHash& hash,
|
||||
return true ;
|
||||
}
|
||||
|
||||
/* Server Send */
|
||||
/* Server Send */
|
||||
bool ftServer::sendData(const RsPeerId& peerId, const RsFileHash& hash, uint64_t size, uint64_t baseoffset, uint32_t chunksize, void *data)
|
||||
{
|
||||
/* create a packet */
|
||||
@ -1617,7 +1617,7 @@ int ftServer::handleIncoming()
|
||||
**********************************
|
||||
*********************************/
|
||||
|
||||
/***************************** CONFIG ****************************/
|
||||
/***************************** CONFIG ****************************/
|
||||
|
||||
bool ftServer::addConfiguration(p3ConfigMgr *cfgmgr)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user