⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 serv.h

📁 使用CMPP2.0的一个模拟网关程序源代码
💻 H
字号:
/*********************************************************************************************
**********************************************************************************************
****
****		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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -