Git Product home page Git Product logo

Comments (5)

mscdex avatar mscdex commented on August 27, 2024

Well, if null is being returned, that means there's an error. What is errno set to after null is returned for that particular address? What platform are you on?

from cap.

Befzz avatar Befzz commented on August 27, 2024

Windows 64bit, latest nodejs, VC2012 Express

WSAAddressToString fails with errors 10014 and 10022 (explained here http://msdn.microsoft.com/en-us/library/windows/desktop/ms740668(v=vs.85).aspx)

UPD 1;
inet_ntop called for INET6 fails,
but for INET4 works well
UPD 2:
for INET6 address(like a "fe80::cda4:f344:6b4d:2f55"(i see it in windows)) WSAAddressToString returning error code 10014
for INET6 mask/broadaddr (they are empty) WSAAddressToString returning err code 10022

from cap.

mscdex avatar mscdex commented on August 27, 2024

Ok, can you try the master branch? 6656511 should fix this.

from cap.

Befzz avatar Befzz commented on August 27, 2024
  • works!
console.log(require('util').inspect(Cap.deviceList(),{depth:5}));

result:

[ { name: '\\Device\\NPF_{5B026FDA-8B7B-48B9-A4A2-2A8E27081FF0}',
    description: 'Realtek PCIe GBE Family Controller',
    addresses:
     [ { addr: 'fe80::7103:3f61:9bb:7302',
         netmask: undefined,
         broadaddr: undefined },
       { addr: '0.0.0.0',
         netmask: '255.0.0.0',
         broadaddr: '255.255.255.255' } ] },
  { name: '\\Device\\NPF_{A43B19E0-E880-4DED-BCCD-D82EE339EB48}',
    description: 'Microsoft',
    addresses:
     [ { addr: 'fe80::5c31:b286:9dc1:bebe',
         netmask: undefined,
         broadaddr: undefined },
       { addr: '192.168.0.100',
         netmask: '255.255.255.0',
         broadaddr: '255.255.255.255' } ] },
  { name: '\\Device\\NPF_{1106D8D7-5ECA-4C7C-86DB-00C34340A4FD}',
    description: 'Microsoft',
    addresses:
     [ { addr: 'fe80::cda4:f39b:6b1d:2f55',
         netmask: undefined,
         broadaddr: undefined },
       { addr: '0.0.0.0',
         netmask: '255.0.0.0',
         broadaddr: '255.255.255.255' } ] } ]

from cap.

mscdex avatar mscdex commented on August 27, 2024

Thanks for the confirmation. Published fix in v0.0.7 now on npm.

from cap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.