📄 udp.h
字号:
/*/////////////////////////////////////////////////////////////////////////////
File Name : UDP.h
Author : Rene Trenado
Location : Motorola Applications Lab, Baja California
Date Created : December 2001
Current Revision : 0.0
Notes : This file contains definitions needed by the UDP module.
//////////////////////////////////////////////////////////////////////////////*/
#ifndef __UDP_H
#define __UDP_H
#include "Notation.h"
typedef struct {
BYTE SourceIP [4];
BYTE DestinationIP [4];
WORD SourcePort;
WORD DestPort;
BYTE LengthUpper;
BYTE Length;
WORD Checksum;
BYTE Payload[54];
} UDPDatagram;
extern UDPDatagram *udp_out;
typedef void (* UDPCALLBACK)(BYTE *data, BYTE size, DWORD RemoteIP, WORD Port);
void UDPSetCALLBACK (UDPCALLBACK Proc);
void UDP_Handler (UDPDatagram *udp);
WORD UDP_Checksum (BYTE* udp);
void UDPBind (WORD Port);
void UDPSendData (BYTE Ip[], WORD Port, BYTE* Payload, BYTE size);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -