XenevaOS
Loading...
Searching...
No Matches
udp.h
Go to the documentation of this file.
1
30#ifndef __UDP_H__
31#define __UDP_H__
32
33#include <list.h>
34
35#pragma pack(push,1)
36__declspec(align(2))
37typedef struct _udpheader_ {
38 unsigned short srcPort;
39 unsigned short destPort;
40 unsigned short length;
41 unsigned short checksum;
42 unsigned char payload[];
44#pragma pack(pop)
45
46/*
47* CreateUDPSocket -- create a new UDP
48* socket
49*/
50extern int CreateUDPSocket();
51
52/*
53 * UDPSocketInstall -- initialize the UDP socket
54 */
55extern void UDPProtocolInstall();
56
57/*
58 * UDPProtocolGetSockList -- returns the socket
59 * list
60 */
62
63#endif
Definition list.h:46
__declspec(align(2)) typedef struct _udpheader_
Definition udp.h:36
UDPHeader
Definition udp.h:43
void UDPProtocolInstall()
Definition udp.cpp:266
list_t * UDPProtocolGetSockList()
Definition udp.cpp:274
int CreateUDPSocket()
Definition udp.cpp:234