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;
Will be a support of raw sockets in node.js, e.g. to create ping packets?
javascript node.js raw-sockets
add a comment |
Will be a support of raw sockets in node.js, e.g. to create ping packets?
javascript node.js raw-sockets
add a comment |
Will be a support of raw sockets in node.js, e.g. to create ping packets?
javascript node.js raw-sockets
Will be a support of raw sockets in node.js, e.g. to create ping packets?
javascript node.js raw-sockets
javascript node.js raw-sockets
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
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
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.
node-raw-socket does not install. fails on build for me.
– uptownhr
Sep 23 '15 at 21:09
add a comment |
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.
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
add a comment |
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.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
node-raw-socket does not install. fails on build for me.
– uptownhr
Sep 23 '15 at 21:09
add a comment |
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.
node-raw-socket does not install. fails on build for me.
– uptownhr
Sep 23 '15 at 21:09
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered May 4 '13 at 10:28
orezvaniorezvani
1,4098 gold badges31 silver badges50 bronze badges
1,4098 gold badges31 silver badges50 bronze badges
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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