[Openmcl-devel] %get-ip-interfaces returning nil

Elliott Slaughter elliottslaughter at gmail.com
Mon Jul 19 21:09:28 PDT 2010


I had to tweak it a little to let it compile under mingw, but yes, it does
return success when CCL does not.

On Mon, Jul 19, 2010 at 12:49 AM, Roman Marynchak <roman.marynchak at gmail.com
> wrote:

> Hi Elliott,
>
> I have tried the same under Win7 x64, but in C. It works fine. You may use
> this simple code to figure out the level where the problem is (CL or OS):
>
> #include "stdafx.h"
> #include <Winsock2.h>
>
> char data[4096];
>
> int _tmain(int argc, _TCHAR* argv[])
> {
>  WSADATA wsd;
>
>  if (0 == WSAStartup(0x0202, &wsd)) {
>   SOCKET s = socket(AF_INET,SOCK_DGRAM, IPPROTO_UDP);
>   if (INVALID_SOCKET != s) {
>    DWORD retb;
>    if(0 == WSAIoctl(s, 0x4004747f, NULL, 0, &data, 4096, &retb, NULL,
> NULL)) {
>     printf("Success\n");
>     getchar();
>    }
>   }
>  }
>  return 0;
> }
>
>
> Regards,
> Roman
>
> 2010/7/19 Elliott Slaughter <elliottslaughter at gmail.com>
>
>> Hi,
>>
>> I have kind of a bizarre problem. I noticed recently that
>> ccl::%get-ip-interfaces returns nil for me, but just 3 or 4 months ago I
>> used to get a list of my network connections. I am running Windows 7 Pro
>> 64-bit, and have not upgraded or changed my CCL installation in any way
>> during that time frame. My CCL version is 1.4-r13122. The only thing I can
>> think of that might changed on my system are security updates from
>> Microsoft. I have tried changing network settings, and disabling the
>> firewall, and nothing seems to help.
>>
>> The reason I ask is because several months ago I
>> ported ccl::%get-ip-interfaces to CFFI. At the time, that implementation
>> worked perfectly on 5 different CL implementations. Now it returns nil in
>> all of them in Windows. I have not made any changes to the ip-interfaces
>> code during that time. Everything still works fine on other operating
>> systems.
>>
>> Any ideas would be appreciated. Thanks.
>>
>> --
>> Elliott Slaughter
>>
>> "Don't worry about what anybody else is going to do. The best way to
>> predict the future is to invent it." - Alan Kay
>>
>> _______________________________________________
>> Openmcl-devel mailing list
>> Openmcl-devel at clozure.com
>> http://clozure.com/mailman/listinfo/openmcl-devel
>>
>>
>


-- 
Elliott Slaughter

"Don't worry about what anybody else is going to do. The best way to predict
the future is to invent it." - Alan Kay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20100719/ffae6607/attachment.htm>


More information about the Openmcl-devel mailing list