📄 itglog.h
字号:
/* Component of the D-ITG 2.4 Platform
*
*
* copyright : (C) 2004 by Stefano Avallone, Alessio Botta, Donato Emma,
* Salvatore Guadagno, Antonio Pescape'
* DIS Dipartimento di Informatica e Sistemistica
* (Computer Science Department)
* University of Naples "Federico II"
* email: : {stavallo, pescape}@unina.it, {abotta, demma, sguadagno}@napoli.consorzio-cini.it
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*/
#define OFFSET_LOG_PORT 1000
#define SEED_LOG_PORT 9003
struct paramLogThread {
int socket;
};
extern ofstream out;
extern int flagTerm;
extern signaling signalingLog;
extern struct sockaddr_in senderLog;
extern int signalSocket;
#ifdef LINUX_OS
extern const char DEFAULT_LOG_FILE[];
#endif
#ifdef WIN32
extern const char DEFAULT_LOG_FILE[];
extern HANDLE mutexLog;
#endif
void printHelpAndExit();
void closeFileLog(ofstream *out);
void recvInfo(int signalingChannel,BYTE &protocol,char logFile[DIM_LOG_FILE]);
int findPortFree(int logSock);
char* allowedLogFile(char logFile[DIM_LOG_FILE]);
void *channelManager(void *param);
void terminate(int sign);
void reportErrorAndExit(char *function, char *program, char *msg);
void createSignalingChannel();
void logInit();
void parserLog(int argc , char *argv[]);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -