[Libwebsockets] Windows RAW-Sockets

Roger Light roger at atchoo.org
Mon Mar 9 11:08:42 CET 2015


Hi Markus,

Can you explain how you see this? libwebsockets creates sockets with a
call that looks like

sockfd = socket(AF_INET, SOCK_STREAM, 0);

To create a raw socket the SOCK_STREAM parameter would have to be
SOCK_RAW, exactly as is described in the link you provided.

It's also worth noting that according to the same link, in most
versions of Windows available today it is impossible to send TCP data
over a Windows raw socket. This would mean that libwebsockets would
not work at all on Windows Vista, Windows 7 etc. if it was using raw
sockets.

Cheers,

Roger


On Mon, Mar 9, 2015 at 9:49 AM, Klemm, Markus <andy.green at linaro.org> wrote:
> Hi there,
>
>
>
> I noticed that libwebsockets uses TCP/IP Raw Sockets on windows. These
> require always administrative privileges.
>
> (see https://msdn.microsoft.com/en-us/library/windows/desktop/ms740548.aspx
> )
>
>
>
> Is there a way to use normal sockets in libwebsockets?
>
>
>
> Mit freundlichen Grüßen / Best regards
>
> Markus Klemm
> Technology & Development
>
> Cicor Advanced Microelectronics & Substrates Division
> RHe Microsystems GmbH
> Heidestraße 70
> 01454 Radeberg
> Deutschland
>
> Geschäftsführer/ Managing Director: Dr. Michael Bork, Pascal Keller
> Handelsregister/ Commercial register  Dresden HRB 2853
>
>
> _______________________________________________
> Libwebsockets mailing list
> Libwebsockets at ml.libwebsockets.org
> http://ml.libwebsockets.org/mailman/listinfo/libwebsockets
>



More information about the Libwebsockets mailing list