36 lines
747 B
C
36 lines
747 B
C
/**
|
|
* Copyright (C) 2008 Happy Fish / YuQing
|
|
*
|
|
* FastDFS may be copied only under the terms of the GNU General
|
|
* Public License V3, which may be found in the FastDFS source kit.
|
|
* Please visit the FastDFS Home Page http://www.fastken.com/ for more detail.
|
|
**/
|
|
|
|
//tracker_service.h
|
|
|
|
#ifndef _TRACKER_SERVICE_H_
|
|
#define _TRACKER_SERVICE_H_
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include "fdfs_define.h"
|
|
#include "fastcommon/ioevent.h"
|
|
#include "fastcommon/fast_task_queue.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
int tracker_service_init();
|
|
void tracker_service_destroy();
|
|
|
|
void tracker_accept_loop(int server_sock);
|
|
int tracker_deal_task(struct fast_task_info *pTask, const int stage);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|