?? uaprof1.h
字號:
#ifndef _UAPROF_H_
#define _UAPROF_H_
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/wait.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <signal.h>
#include <pthread.h>
#include "StreamDBMsgDefs.h"
#define MAX_RECV_BUFFER 1024
#define CONF_FILE_NAME "./nfhmssp.conf"
#define UAPROF_BEGIN "[UAPROF_SESSION]"
#define UAPROF_END "[/UAPROF_SESSION]"
#define TRACE 1 /*表示TRACE信息,當level等于1時打印*/
#define WARN 2 /*表示告警信息,當level等于1或2時打印*/
#define ERR 3 /*表示錯誤信息,當level等于1、2、3時都會打印*/
typedef struct _uaprof_thread_arg_t
{
int connfd;
pthread_t ListenThreadId;
struct sockaddr_in client;
}uaprof_thread_arg_t;
typedef struct _uaprof_config_data_t
{
int iHttpPort; /*外部uaprof服務器的端口*/
int iFtpPort; /*外部uaprof服務器的端口*/
int iListenPort; /*uaprof同步服務器對RDS進行監聽的端口*/
int iDataBasePort; /*數據庫的監聽端口*/
int iLogLevel; /*LOG的等級*/
int iPrintFile; /*是否把log記入文件0:否;1:是*/
char caHostIp[16]; /*uaprof同步服務器的IP*/
char caUaprofIp[16]; /*外部uaprof服務器的IP*/
char caDataBaseIp[16]; /*數據庫的IP*/
char caUserName[16]; /*ftp用戶名*/
char caPassWd[16]; /*ftp密碼*/
char caLocalPath[64]; /*存放uaprof文件的本地路徑*/
char caContentPath[16]; /*存放uaprof文件的目錄*/
}UaprofConfSt;
int uaprofReadConf(UaprofConfSt * pConfData);
int ConnectToServer(char * ip, int port);
int InsertUaprofDB(char *ip, int port, pss_uaprof_t *uaprof);
void UAPROF_LOG(int iErrCode, const char *format, ...);
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -