Packet Sniffer SDK DLL Edition
HNPacket :: Methods :: PktUDPGenerate | | Previous Next |
Creates a UDP packet.
Syntax:
DWORD __stdcall PktUDPGenerate(LPVOID pUDPPacket, DWORD PacketLen, WORD SrcPort, WORD DstPort);
Parameters:
pUDPPacket
[in] A pointer to the memory block, in which the packet will be created.
PacketLen
[in] The packet size.
SrcPort
[in] The source port.
DstPort
[in] The destination port.
Return values:
| HNERR_OK | No errors. |
| HNERR_ADDR_ERR | The pUDPPacket parameter contains the wrong value (write to memory error). |
Description:
Use PktUDPGenerate to fill in the UDP packet header.