[Libwebsockets] Windows RAW-Sockets

Roger Light roger at atchoo.org
Mon Mar 9 11:52:38 CET 2015


Hi Markus,

Good that you've found the problem :)

Cheers,

Roger


On Mon, Mar 9, 2015 at 10:26 AM, Klemm, Markus <andy.green at linaro.org> wrote:
> Hi Roger,
>
> I'm sorry, you're right, I was mistaken that socket() would use raw sockets. Looks like my windows working environment is setup up to need administrative privileges for any socket.
>
> Yours deeply sorry,
>
> Markus Klemm
> Technology & Development
>
>
> -----Ursprüngliche Nachricht-----
> Von: Andy Green [mailto:extracats at googlemail.com] Im Auftrag von Roger Light
> Gesendet: Montag, 9. März 2015 11:09
> An: libwebsockets at ml.libwebsockets.org
> Betreff: Re: [Libwebsockets] Windows RAW-Sockets
>
> 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?
>>
>
> _______________________________________________
> Libwebsockets mailing list
> Libwebsockets at ml.libwebsockets.org
> http://ml.libwebsockets.org/mailman/listinfo/libwebsockets



More information about the Libwebsockets mailing list