[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [patch #9456] cleanup ioctlsocket for LWIP_COMPAT_SOCKETS =

From: Joel Cunningham
Subject: [lwip-devel] [patch #9456] cleanup ioctlsocket for LWIP_COMPAT_SOCKETS == 2
Date: Thu, 21 Sep 2017 15:11:35 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #2, patch #9456 (project lwip):

> I think I would rather make "ioctlsocket" behave the same way as

That's what I was trying to do with the patch, not sure where the behavior is

As I understand it, we have the following 3 names:

Lwip function: lwip_close
Winsock: closesocket
POSIX: close

Lwip function: lwip_ioctl
Winsock: ioctlsocket
POSIX: ioctl

For LWIP_COMPAT_SOCKETS == 2, lwip_close -> closesocket.

Additionally if LWIP_POSIX_SOCKETS_IO_NAMES == 1, lwip_close -> close and
closesocket -> close

The patch establishes the same relationships for ioctl:

For LWIP_COMPAT_SOCKETS == 2, lwip_ioctl -> ioctlsocket

Additionally if LWIP_POSIX_SOCKETS_IO_NAMES == 1, lwip_ioctl -> ioctl and
ioctlsocket -> ioctl


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]