lhnetpacket_t *p, *pnext;
if (!lhnet_active)
return;
- List_For_Each_Entry_Safe(s, snext, &lhnet_socketlist.list, list)
+ List_For_Each_Entry_Safe(s, snext, &lhnet_socketlist.list, lhnetsocket_t, list)
LHNET_CloseSocket(s);
- List_For_Each_Entry_Safe(p, pnext, &lhnet_packetlist.list, list)
+ List_For_Each_Entry_Safe(p, pnext, &lhnet_packetlist.list, lhnetpacket_t, list)
{
List_Delete(&p->list);
Z_Free(p);
lhnetsocket_t *s;
FD_ZERO(&fdreadset);
lastfd = 0;
- List_For_Each_Entry(s, &lhnet_socketlist.list, list)
+ List_For_Each_Entry(s, &lhnet_socketlist.list, lhnetsocket_t, list)
{
if (s->address.addresstype == LHNETADDRESSTYPE_INET4 || s->address.addresstype == LHNETADDRESSTYPE_INET6)
{
lhnetsocket->address.port = 1024;
for (;;)
{
- List_For_Each_Entry(s, &lhnet_socketlist.list, list)
+ List_For_Each_Entry(s, &lhnet_socketlist.list, lhnetsocket_t, list)
if (s->address.addresstype == lhnetsocket->address.addresstype && s->address.port == lhnetsocket->address.port)
break;
if (s == &lhnet_socketlist)
}
}
// check if the port is available
- List_For_Each_Entry(s, &lhnet_socketlist.list, list)
+ List_For_Each_Entry(s, &lhnet_socketlist.list, lhnetsocket_t, list)
if (s->address.addresstype == lhnetsocket->address.addresstype && s->address.port == lhnetsocket->address.port)
break;
if (s == &lhnet_socketlist && lhnetsocket->address.port != 0)
// scan for any old packets to timeout while searching for a packet
// that is waiting to be delivered to this socket
currenttime = time(NULL);
- List_For_Each_Entry_Safe(p, pnext, &lhnet_packetlist.list, list)
+ List_For_Each_Entry_Safe(p, pnext, &lhnet_packetlist.list, lhnetpacket_t, list)
{
if (p->timeout < currenttime)
{