sipmsg.h

来自「Pocket SIP Messenger is a SIP instant me」· C头文件 代码 · 共 35 行

H
35
字号
// SIPMsg.h: interface for the CSIPMsg class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_SIPMSG_H__DA737839_9263_4A9B_B1F5_03796BB64964__INCLUDED_)
#define AFX_SIPMSG_H__DA737839_9263_4A9B_B1F5_03796BB64964__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "str.h"

int m_strncasecmp(char *a, char *b, int l);

class CSIPMsg  
{
public:
	CSIPMsg();
	virtual ~CSIPMsg();

protected:
	str sip_msg;	// the SIP message
	str from;		// from header
	str body;		// body of the message
public:
	int setSIPMsg(char* msg, int len);
	int getFrom(str *f);
	int getBody(str *b);
	int buildResponse(str *r, char *fl, CString cAddr, int cPort);
	int isIdentic(char *msg, int len);
};

#endif // !defined(AFX_SIPMSG_H__DA737839_9263_4A9B_B1F5_03796BB64964__INCLUDED_)

⌨️ 快捷键说明

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