XenevaOS
Loading...
Searching...
No Matches
XenevaOS
BaseHdr
Net
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))
37
typedef struct _udpheader_ {
38
unsigned
short
srcPort;
39
unsigned
short
destPort;
40
unsigned
short
length;
41
unsigned
short
checksum;
42
unsigned
char
payload[];
43
}
UDPHeader
;
44
#pragma pack(pop)
45
46
/*
47
* CreateUDPSocket -- create a new UDP
48
* socket
49
*/
50
extern
int
CreateUDPSocket
();
51
52
/*
53
* UDPSocketInstall -- initialize the UDP socket
54
*/
55
extern
void
UDPProtocolInstall
();
56
57
/*
58
* UDPProtocolGetSockList -- returns the socket
59
* list
60
*/
61
extern
list_t
*
UDPProtocolGetSockList
();
62
63
#endif
_list_
Definition
list.h:46
__declspec
__declspec(align(2)) typedef struct _udpheader_
Definition
udp.h:36
UDPHeader
UDPHeader
Definition
udp.h:43
UDPProtocolInstall
void UDPProtocolInstall()
Definition
udp.cpp:266
UDPProtocolGetSockList
list_t * UDPProtocolGetSockList()
Definition
udp.cpp:274
CreateUDPSocket
int CreateUDPSocket()
Definition
udp.cpp:234
Generated by
1.9.8