X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Modules%2FIPStack%2Fudp.h;h=657bce5abf347861a5997fe9f06c6f6e69dae418;hb=b1873b4cff47aae8ada8cc303ea01b475cc7ccc8;hp=36c36e1580bde76e3ab1a02ce7e05d57132a657f;hpb=b3fa9a08edcbc459bd8e9df73186e292470ebfc3;p=tpg%2Facess2.git diff --git a/Modules/IPStack/udp.h b/Modules/IPStack/udp.h index 36c36e15..657bce5a 100644 --- a/Modules/IPStack/udp.h +++ b/Modules/IPStack/udp.h @@ -9,6 +9,7 @@ #include "ipv4.h" typedef struct sUDPHeader tUDPHeader; +typedef struct sUDPServer tUDPServer; typedef struct sUDPPacket tUDPPacket; typedef struct sUDPChannel tUDPChannel; @@ -39,9 +40,24 @@ struct sUDPChannel } 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