serv.h

来自「使用CMPP2.0的一个模拟网关程序源代码」· C头文件 代码 · 共 54 行

H
54
字号
/*********************************************************************************************
**********************************************************************************************
****
****		File name:						serv.h
****		Creation	date(DD.MM.YY):		20/04/03
****		Author:							Tom fan
****
****		Comment:
****
****		Revisions:
****		$Log$
****		Revision 1.0	2003/04/17	Tom fan
****		Begin create this file!
****
****
***********************************************************************************************
***********************(C)	Copyright Giesecke & Devrient	2003******************************/
#ifndef	CMPP_SERV_H
#define	CMPP_SERV_H

#include	"stdafx.h"
#include	"LogFile.h"

#include	"cmpp_types.h"
#include	"cmpp_error.h"
#include	"cmpp_proto.h"
#include	"cmpp_api.h"
#include	"cmpp_sock.h"

#pragma		pack(1)
#pragma		comment(lib, "cmppapi.lib")
#pragma		comment(lib, "ws2_32.lib")

#define		MAX_LINE	4192

struct client_conn {
	SOCKET	hClient;
	CString sIcpid;
};
typedef struct client_conn	CLIENT_CONN;

int		MB(const char* fmt, UINT nType, ...);
int		MB(const char* fmt, ...);
bool	serv_listen();
bool	serv_clean();
bool	serv_accept();
UINT	serv_accept_proc(void *param);
UINT	talkToclient(void *param);
void	log_pkg_content(cmppg_icp_packet cip);
void	AddToList(SOCKET hClient, CString sIcpid);
void	RemoveFromList(SOCKET hClient);
SOCKET	GetFromList(CString sIcpid);

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?