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

📄 socket_create_message_protocol_handler.h

📁 程序实现了在ip协议之上加一层RUDP协议
💻 H
字号:
// Socket_Create_Message_Protocol_Handler.h: interface for the Socket_Create_Message_Protocol_Handler class.
//
//////////////////////////////////////////////////////////////////////


#if !defined(AFX_SOCKET_CREATE_MESSAGE_PROTOCOL_HANDLER_H__DE5E7967_9ADB_453F_89F8_A2118A2D2B61__INCLUDED_)
#define AFX_SOCKET_CREATE_MESSAGE_PROTOCOL_HANDLER_H__DE5E7967_9ADB_453F_89F8_A2118A2D2B61__INCLUDED_

#include "socket_message_type.h"
#include "socket_data_struct.h"


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

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

	static Socket_Create_Message_Protocol_Handler* get_instance();
	static Message f_SOCKET_Socket_Buff_Enough();
	static Message f_SOCKET_Socket_Buff_Full();
	static Message f_SOCKET_Socket_Buff_No_Enough();
	static Message f_SOCKET_Socket_Link_Lost(Message *msg);
	static Message f_SOCKET_App_Connected_Notify(unsigned int d_deviceID);
	static Message f_SOCKET_App_Request_Conn_Failure(unsigned int deviceID, unsigned int failure_id);
	static Message f_SOCKET_App_Send_Failure(Message *msg);
	static Message f_SOCKET_App_Send_Success(Message *msg);
	static Message f_SOCKET_App_Packet_Receive(char *buf, unsigned int deviceID, int RUDPTag,int packet_length);

private:
	static Socket_Create_Message_Protocol_Handler* pinstance;
};

#endif // !defined(AFX_SOCKET_CREATE_MESSAGE_PROTOCOL_HANDLER_H__DE5E7967_9ADB_453F_89F8_A2118A2D2B61__INCLUDED_)

⌨️ 快捷键说明

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