43 lines
903 B
C
43 lines
903 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
|
|
|
|
//typedef struct nio_thread_data struct nio_thread_data;
|
|
|
|
extern int g_tracker_thread_count;
|
|
extern struct nio_thread_data *g_thread_data;
|
|
|
|
int tracker_service_init();
|
|
int tracker_service_destroy();
|
|
|
|
int tracker_terminate_threads();
|
|
|
|
void tracker_accept_loop(int server_sock);
|
|
int tracker_deal_task(struct fast_task_info *pTask);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|