#include "ipv4.h"
typedef struct sUDPHeader tUDPHeader;
+typedef struct sUDPServer tUDPServer;
typedef struct sUDPPacket tUDPPacket;
typedef struct sUDPChannel tUDPChannel;
} RemoteAddr;
Uint16 RemotePort;
tVFS_Node Node;
- tSpinlock lQueue;
+ tShortSpinlock lQueue;
tUDPPacket * volatile Queue;
tUDPPacket *QueueEnd;
};
+struct sUDPServer
+{
+ struct sUDPServer *Next;
+
+ tVFS_Node Node;
+
+ tInterface *Interface;
+ Uint16 ListenPort;
+ int NextID;
+ int NumChannels;
+ tUDPChannel *Channels;
+ tMutex Lock;
+ tUDPChannel * volatile NewChannels;
+};
+
#endif