Will be a support of raw sockets in node.js, e.g. to create ping packets?Node.js + Nginx - What now?How to do Base64 encoding in node.js?Receiving packets with raw socket in LinuxRaw socket python packet snifferHow to filter Packets in RAW socket in LINUXPing packets on raw socketsWhy ping receives another ping command packet?Some problems about the raw-socket in Node.jsCan't receive packets to raw socketIf I open a raw socket and start reading the packets, are the packets that have been read not delivered to the destined TCP sockets?

Should I hide continue button until tasks are completed?

Should I tell my insurance company I'm making payments on my new car?

Going to get married soon, should I do it on Dec 31 or Jan 1?

Is adding a new player (or players) a DM decision, or a group decision?

Is my Rep in Stack-Exchange Form?

Every infinite linearly ordered set has two disjoint infinite subsets

Using symmetry of Riemann tensor to vanish components

Does squid ink pasta bleed?

Does ultrasonic bath cleaning damage laboratory volumetric glassware calibration?

Ending: accusative or not?

What happens when your group is victim of a surprise attack but you can't be surprised?

Declining an offer to present a poster instead of a paper

How well known and how commonly used was Huffman coding in 1979?

How can Charles Proxy change settings without admin rights after first time?

Why does Darth Sidious need bodyguards?

How to determine what is the correct level of detail when modelling?

How many satellites can stay in a Lagrange point?

Are there any vegetarian astronauts?

Are Finite Automata Turing Complete?

Should my manager be aware of private LinkedIn approaches I receive? How to politely have this happen?

How can I convince my reader that I will not use a certain trope?

Counting occurrence of words in table is slow

What is this particular type of chord progression, common in classical music, called?

Links to webpages in books



Will be a support of raw sockets in node.js, e.g. to create ping packets?


Node.js + Nginx - What now?How to do Base64 encoding in node.js?Receiving packets with raw socket in LinuxRaw socket python packet snifferHow to filter Packets in RAW socket in LINUXPing packets on raw socketsWhy ping receives another ping command packet?Some problems about the raw-socket in Node.jsCan't receive packets to raw socketIf I open a raw socket and start reading the packets, are the packets that have been read not delivered to the destined TCP sockets?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








5















Will be a support of raw sockets in node.js, e.g. to create ping packets?










share|improve this question






























    5















    Will be a support of raw sockets in node.js, e.g. to create ping packets?










    share|improve this question


























      5












      5








      5








      Will be a support of raw sockets in node.js, e.g. to create ping packets?










      share|improve this question
















      Will be a support of raw sockets in node.js, e.g. to create ping packets?







      javascript node.js raw-sockets






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 22 '13 at 11:42









      John Bensin

      2361 gold badge4 silver badges19 bronze badges




      2361 gold badge4 silver badges19 bronze badges










      asked Dec 9 '12 at 15:38









      sauletasmiestassauletasmiestas

      1731 gold badge4 silver badges16 bronze badges




      1731 gold badge4 silver badges16 bronze badges






















          3 Answers
          3






          active

          oldest

          votes


















          7














          A new module named node-raw-socket offers the perfect solution for real raw sockets using nodejs.



          And, for creating ping (ICMP) packets, the same developer has a very nice working (using it) solution based on node-raw-sockets as well: node-net-ping.






          share|improve this answer

























          • node-raw-socket does not install. fails on build for me.

            – uptownhr
            Sep 23 '15 at 21:09


















          4














          Node supports TCP, UDP, and unix sockets. Ping packets are ICMP packets, which node cannot create directly at this time. You could execute an external ping subprocess or consider writing a C extension. Most of node's low level OS APIs are thin javascript wrappers around the corresponding C API, so you could follow that existing well-established pattern and implement this as a small JS wrapper layer around the corresponding OS-level APIs.



          http://nodejs.org/docs/latest/api/all.html#all_class_net_socket



          There's a chance node/javascript are a poor choice for your project based on this requirement though.






          share|improve this answer


















          • 1





            I think the solution should be to create an addon addons

            – sauletasmiestas
            Dec 10 '12 at 15:25











          • @Peter, There's no reason why Node supports TCP UDP, yet doesn't support IP. Support for IP must come sooner or later.

            – Pacerier
            Mar 3 '17 at 23:23


















          0














          net-ping module may suit your need. to install it you can use the following command:



          npm install net-ping


          The documentation with examples is included here.






          share|improve this answer

























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f13788883%2fwill-be-a-support-of-raw-sockets-in-node-js-e-g-to-create-ping-packets%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            7














            A new module named node-raw-socket offers the perfect solution for real raw sockets using nodejs.



            And, for creating ping (ICMP) packets, the same developer has a very nice working (using it) solution based on node-raw-sockets as well: node-net-ping.






            share|improve this answer

























            • node-raw-socket does not install. fails on build for me.

              – uptownhr
              Sep 23 '15 at 21:09















            7














            A new module named node-raw-socket offers the perfect solution for real raw sockets using nodejs.



            And, for creating ping (ICMP) packets, the same developer has a very nice working (using it) solution based on node-raw-sockets as well: node-net-ping.






            share|improve this answer

























            • node-raw-socket does not install. fails on build for me.

              – uptownhr
              Sep 23 '15 at 21:09













            7












            7








            7







            A new module named node-raw-socket offers the perfect solution for real raw sockets using nodejs.



            And, for creating ping (ICMP) packets, the same developer has a very nice working (using it) solution based on node-raw-sockets as well: node-net-ping.






            share|improve this answer















            A new module named node-raw-socket offers the perfect solution for real raw sockets using nodejs.



            And, for creating ping (ICMP) packets, the same developer has a very nice working (using it) solution based on node-raw-sockets as well: node-net-ping.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Mar 25 at 11:19









            Quentin

            671k76 gold badges915 silver badges1074 bronze badges




            671k76 gold badges915 silver badges1074 bronze badges










            answered Feb 12 '13 at 10:48









            umutmumutm

            1,4932 gold badges17 silver badges19 bronze badges




            1,4932 gold badges17 silver badges19 bronze badges












            • node-raw-socket does not install. fails on build for me.

              – uptownhr
              Sep 23 '15 at 21:09

















            • node-raw-socket does not install. fails on build for me.

              – uptownhr
              Sep 23 '15 at 21:09
















            node-raw-socket does not install. fails on build for me.

            – uptownhr
            Sep 23 '15 at 21:09





            node-raw-socket does not install. fails on build for me.

            – uptownhr
            Sep 23 '15 at 21:09













            4














            Node supports TCP, UDP, and unix sockets. Ping packets are ICMP packets, which node cannot create directly at this time. You could execute an external ping subprocess or consider writing a C extension. Most of node's low level OS APIs are thin javascript wrappers around the corresponding C API, so you could follow that existing well-established pattern and implement this as a small JS wrapper layer around the corresponding OS-level APIs.



            http://nodejs.org/docs/latest/api/all.html#all_class_net_socket



            There's a chance node/javascript are a poor choice for your project based on this requirement though.






            share|improve this answer


















            • 1





              I think the solution should be to create an addon addons

              – sauletasmiestas
              Dec 10 '12 at 15:25











            • @Peter, There's no reason why Node supports TCP UDP, yet doesn't support IP. Support for IP must come sooner or later.

              – Pacerier
              Mar 3 '17 at 23:23















            4














            Node supports TCP, UDP, and unix sockets. Ping packets are ICMP packets, which node cannot create directly at this time. You could execute an external ping subprocess or consider writing a C extension. Most of node's low level OS APIs are thin javascript wrappers around the corresponding C API, so you could follow that existing well-established pattern and implement this as a small JS wrapper layer around the corresponding OS-level APIs.



            http://nodejs.org/docs/latest/api/all.html#all_class_net_socket



            There's a chance node/javascript are a poor choice for your project based on this requirement though.






            share|improve this answer


















            • 1





              I think the solution should be to create an addon addons

              – sauletasmiestas
              Dec 10 '12 at 15:25











            • @Peter, There's no reason why Node supports TCP UDP, yet doesn't support IP. Support for IP must come sooner or later.

              – Pacerier
              Mar 3 '17 at 23:23













            4












            4








            4







            Node supports TCP, UDP, and unix sockets. Ping packets are ICMP packets, which node cannot create directly at this time. You could execute an external ping subprocess or consider writing a C extension. Most of node's low level OS APIs are thin javascript wrappers around the corresponding C API, so you could follow that existing well-established pattern and implement this as a small JS wrapper layer around the corresponding OS-level APIs.



            http://nodejs.org/docs/latest/api/all.html#all_class_net_socket



            There's a chance node/javascript are a poor choice for your project based on this requirement though.






            share|improve this answer













            Node supports TCP, UDP, and unix sockets. Ping packets are ICMP packets, which node cannot create directly at this time. You could execute an external ping subprocess or consider writing a C extension. Most of node's low level OS APIs are thin javascript wrappers around the corresponding C API, so you could follow that existing well-established pattern and implement this as a small JS wrapper layer around the corresponding OS-level APIs.



            http://nodejs.org/docs/latest/api/all.html#all_class_net_socket



            There's a chance node/javascript are a poor choice for your project based on this requirement though.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Dec 9 '12 at 16:55









            Peter LyonsPeter Lyons

            114k22 gold badges232 silver badges243 bronze badges




            114k22 gold badges232 silver badges243 bronze badges







            • 1





              I think the solution should be to create an addon addons

              – sauletasmiestas
              Dec 10 '12 at 15:25











            • @Peter, There's no reason why Node supports TCP UDP, yet doesn't support IP. Support for IP must come sooner or later.

              – Pacerier
              Mar 3 '17 at 23:23












            • 1





              I think the solution should be to create an addon addons

              – sauletasmiestas
              Dec 10 '12 at 15:25











            • @Peter, There's no reason why Node supports TCP UDP, yet doesn't support IP. Support for IP must come sooner or later.

              – Pacerier
              Mar 3 '17 at 23:23







            1




            1





            I think the solution should be to create an addon addons

            – sauletasmiestas
            Dec 10 '12 at 15:25





            I think the solution should be to create an addon addons

            – sauletasmiestas
            Dec 10 '12 at 15:25













            @Peter, There's no reason why Node supports TCP UDP, yet doesn't support IP. Support for IP must come sooner or later.

            – Pacerier
            Mar 3 '17 at 23:23





            @Peter, There's no reason why Node supports TCP UDP, yet doesn't support IP. Support for IP must come sooner or later.

            – Pacerier
            Mar 3 '17 at 23:23











            0














            net-ping module may suit your need. to install it you can use the following command:



            npm install net-ping


            The documentation with examples is included here.






            share|improve this answer



























              0














              net-ping module may suit your need. to install it you can use the following command:



              npm install net-ping


              The documentation with examples is included here.






              share|improve this answer

























                0












                0








                0







                net-ping module may suit your need. to install it you can use the following command:



                npm install net-ping


                The documentation with examples is included here.






                share|improve this answer













                net-ping module may suit your need. to install it you can use the following command:



                npm install net-ping


                The documentation with examples is included here.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered May 4 '13 at 10:28









                orezvaniorezvani

                1,4098 gold badges31 silver badges50 bronze badges




                1,4098 gold badges31 silver badges50 bronze badges



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f13788883%2fwill-be-a-support-of-raw-sockets-in-node-js-e-g-to-create-ping-packets%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                    Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript