all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* RAW sockets
@ 2007-02-25  1:08 A Soare
  2007-02-25  1:39 ` Kim F. Storm
  2007-02-25  6:20 ` Stuart D. Herring
  0 siblings, 2 replies; 19+ messages in thread
From: A Soare @ 2007-02-25  1:08 UTC (permalink / raw)
  To: Emacs   Dev  [emacs-devel]

Is it difficult the insertion of raw sockets in Emacs?
This would be very useful.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: RAW sockets
  2007-02-25  1:08 A Soare
@ 2007-02-25  1:39 ` Kim F. Storm
  2007-02-25  6:20 ` Stuart D. Herring
  1 sibling, 0 replies; 19+ messages in thread
From: Kim F. Storm @ 2007-02-25  1:39 UTC (permalink / raw)
  To: alinsoar; +Cc: Emacs Dev [emacs-devel]

A Soare <alinsoar@voila.fr> writes:

> Is it difficult the insertion of raw sockets in Emacs?

It is not easy ... but patches are welcome.

> This would be very useful.

For what purpose ?


-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: RAW sockets
  2007-02-25  1:08 A Soare
  2007-02-25  1:39 ` Kim F. Storm
@ 2007-02-25  6:20 ` Stuart D. Herring
  1 sibling, 0 replies; 19+ messages in thread
From: Stuart D. Herring @ 2007-02-25  6:20 UTC (permalink / raw)
  To: alinsoar; +Cc: emacs-devel

> Is it difficult the insertion of raw sockets in Emacs?
> This would be very useful.

One difficulty -- not with the implementation, but still a difficulty --
would be that on many systems only superusers may create raw sockets, so
in many cases Emacs would not get to use such a feature.  Thought this
might be worth noting in any discussion of the possibility.

Davis

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: RAW sockets
@ 2007-02-25  9:03 A Soare
  2007-02-25  9:09 ` David Kastrup
  0 siblings, 1 reply; 19+ messages in thread
From: A Soare @ 2007-02-25  9:03 UTC (permalink / raw)
  To: Kim F. Storm; +Cc: Emacs   Dev  [emacs-devel]




> Message du 25/02/07 à 02h39
> De : "Kim F. Storm" <storm@cua.dk>
> A : alinsoar@voila.fr
> Copie à : "Emacs Dev [emacs-devel]" <emacs-devel@gnu.org>
> Objet : Re: RAW sockets
> 
> A Soare <alinsoar@voila.fr> writes:
> 
> > Is it difficult the insertion of raw sockets in Emacs?
> 
> It is not easy ... but patches are welcome.
> 
> > This would be very useful.
> 
> For what purpose ?

To trace the root , withut using external commands.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: RAW sockets
  2007-02-25  9:03 A Soare
@ 2007-02-25  9:09 ` David Kastrup
  0 siblings, 0 replies; 19+ messages in thread
From: David Kastrup @ 2007-02-25  9:09 UTC (permalink / raw)
  To: alinsoar; +Cc: Emacs Dev [emacs-devel], Kim F. Storm

A Soare <alinsoar@voila.fr> writes:

>> Message du 25/02/07 à 02h39
>> De : "Kim F. Storm" <storm@cua.dk>
>> A : alinsoar@voila.fr
>> Copie à : "Emacs Dev [emacs-devel]" <emacs-devel@gnu.org>
>> Objet : Re: RAW sockets
>> 
>> A Soare <alinsoar@voila.fr> writes:
>> 
>> > Is it difficult the insertion of raw sockets in Emacs?
>> 
>> It is not easy ... but patches are welcome.
>> 
>> > This would be very useful.
>> 
>> For what purpose ?
>
> To trace the root , withut using external commands.

What is that supposed to mean?

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: RAW sockets
@ 2007-02-25  9:20 A Soare
  2007-02-25 17:09 ` Stuart D. Herring
  2007-02-25 22:23 ` Kim F. Storm
  0 siblings, 2 replies; 19+ messages in thread
From: A Soare @ 2007-02-25  9:20 UTC (permalink / raw)
  To: David Kastrup; +Cc: Emacs   Dev  [emacs-devel]


> > To trace the root , withut using external commands.
> 
> What is that supposed to mean?
> 

To find out the trace made by a IP packet from one destination to one other.

It would be useful also to write a ping command, without using ping of shell.

Alin Soare.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: RAW sockets
  2007-02-25  9:20 A Soare
@ 2007-02-25 17:09 ` Stuart D. Herring
  2007-02-25 22:23 ` Kim F. Storm
  1 sibling, 0 replies; 19+ messages in thread
From: Stuart D. Herring @ 2007-02-25 17:09 UTC (permalink / raw)
  To: alinsoar; +Cc: emacs-devel

>> > To trace the root , withut using external commands.
>>
>> What is that supposed to mean?
>>
>
> To find out the trace made by a IP packet from one destination to one
> other.
>
> It would be useful also to write a ping command, without using ping of
> shell.

The word you wanted is "route", not "root".  "Route" means a path or road,
while "root" means the bottom of a tree (and, from this, the Unix
superuser, and the action of digging around as for roots).

Davis

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: RAW sockets
  2007-02-25  9:20 A Soare
  2007-02-25 17:09 ` Stuart D. Herring
@ 2007-02-25 22:23 ` Kim F. Storm
  2007-02-26 13:06   ` Romain Francoise
  1 sibling, 1 reply; 19+ messages in thread
From: Kim F. Storm @ 2007-02-25 22:23 UTC (permalink / raw)
  To: alinsoar; +Cc: Emacs Dev [emacs-devel]

A Soare <alinsoar@voila.fr> writes:

>> > To trace the root , withut using external commands.
>> 
>> What is that supposed to mean?
>> 
>
> To find out the trace made by a IP packet from one destination to one other.
>
> It would be useful also to write a ping command, without using ping of shell.

If that's the purpose, I don't see it as "very useful".

On GNU/Linux, you need to be root to open a raw socket, so if you are
an ordinary user, you still have to use the external ping program
which is suid root.

I can hardly imagine Emacs running on a platform which does not
have a ping program - so why not use that?

It would be nice if someone wrote a generic ping.el wrapper around
different ping programs on various platforms, passing the proper set
of parameters to make them do the right things...

Then you could do (ping "host" 'ping-result 3 2) to send a maximum of
3 pings with 2 seconds interval to host "host", calling the
ping-result sentinel with 2 paramters (ping-result HOST TIME) where
TIME is the response time in seconds (a float) if host responds,
or TIME is nil if host does not respond.

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: RAW sockets
@ 2007-02-26 10:54 A Soare
  0 siblings, 0 replies; 19+ messages in thread
From: A Soare @ 2007-02-26 10:54 UTC (permalink / raw)
  To: Emacs   Dev  [emacs-devel]




> Message du 26/02/07 à 04h28
> De : "Richard Stallman" <rms@gnu.org>
> A : alinsoar@voila.fr
> Copie à : 
> Objet : Re: RAW sockets
> 
>     > > To trace the root , withut using external commands.
>     > 
>     > What is that supposed to mean?
>     > 
> 
>     To find out the trace made by a IP packet from one destination to one other.
> 
> I think you mean "the route", not "the root".


Yes, traceroute. I mispelled.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: RAW sockets
  2007-02-25 22:23 ` Kim F. Storm
@ 2007-02-26 13:06   ` Romain Francoise
  2007-02-26 13:38     ` Kim F. Storm
  0 siblings, 1 reply; 19+ messages in thread
From: Romain Francoise @ 2007-02-26 13:06 UTC (permalink / raw)
  To: emacs-devel

storm@cua.dk (Kim F. Storm) writes:

> It would be nice if someone wrote a generic ping.el wrapper around
> different ping programs on various platforms, passing the proper
> set of parameters to make them do the right things...

There's M-x ping from lisp/net/net-utils.el, I think it works on
most systems.  This file also provides M-x traceroute, M-x finger,
M-x whois, etc.

-- 
Romain Francoise <romain@orebokech.com> | The sea! the sea! the open
it's a miracle -- http://orebokech.com/ | sea! The blue, the fresh, the
                                        | ever free! --Bryan W. Procter

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: RAW sockets
  2007-02-26 13:06   ` Romain Francoise
@ 2007-02-26 13:38     ` Kim F. Storm
  0 siblings, 0 replies; 19+ messages in thread
From: Kim F. Storm @ 2007-02-26 13:38 UTC (permalink / raw)
  To: emacs-devel

Romain Francoise <romain@orebokech.com> writes:

> storm@cua.dk (Kim F. Storm) writes:
>
>> It would be nice if someone wrote a generic ping.el wrapper around
>> different ping programs on various platforms, passing the proper
>> set of parameters to make them do the right things...
>
> There's M-x ping from lisp/net/net-utils.el, I think it works on
> most systems.  This file also provides M-x traceroute, M-x finger,
> M-x whois, etc.

Thanks.  I had forgotten all about those utils.

In any case, my proposal was to create a more lisp-like api for this
which would allow _code_ to determine whether a given host responds to
ping.  Such an api should definitely use net-utils as a base.

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: RAW sockets
@ 2007-02-26 14:49 A Soare
  2007-02-26 15:48 ` Vinicius Jose Latorre
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: A Soare @ 2007-02-26 14:49 UTC (permalink / raw)
  To: emacs-devel

> There's M-x ping from lisp/net/net-utils.el, I think it works on
> most systems.  This file also provides M-x traceroute, M-x finger,
> M-x whois, etc.

> >> It would be nice if someone wrote a generic ping.el wrapper around
> >> different ping programs on various platforms, passing the proper
> >> set of parameters to make them do the right things...
> >
> > There's M-x ping from lisp/net/net-utils.el, I think it works on
> > most systems.  This file also provides M-x traceroute, M-x finger,
> > M-x whois, etc.
> 
> Thanks.  I had forgotten all about those utils.
> 
> In any case, my proposal was to create a more lisp-like api for this
> which would allow _code_ to determine whether a given host responds to
> ping.  Such an api should definitely use net-utils as a base.

It is nice to exist a net.el with ping written just in emacs lisp, not to render the output from an external ping, even it is more difficult. That is what I thought when I posted.


By the way. Why emacs-paste site render the lisp code in very nice readable colors, while EmacsWiki, which is the main site to leans ELISP, does not? There is not a common administrator?

Alin Soare.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: RAW sockets
  2007-02-26 14:49 A Soare
@ 2007-02-26 15:48 ` Vinicius Jose Latorre
  2007-02-26 16:00 ` Lennart Borgman (gmail)
  2007-02-26 16:09 ` Vinicius Jose Latorre
  2 siblings, 0 replies; 19+ messages in thread
From: Vinicius Jose Latorre @ 2007-02-26 15:48 UTC (permalink / raw)
  To: alinsoar; +Cc: emacs-devel

A Soare wrote:
> By the way. Why emacs-paste site render the lisp code in very nice readable colors, while EmacsWiki, which is the main site to leans ELISP, does not? There is not a common administrator?
>   

Alex Schroeder <alex@emacswiki.org>

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: RAW sockets
  2007-02-26 14:49 A Soare
  2007-02-26 15:48 ` Vinicius Jose Latorre
@ 2007-02-26 16:00 ` Lennart Borgman (gmail)
  2007-02-27  0:49   ` Stuart D. Herring
  2007-02-26 16:09 ` Vinicius Jose Latorre
  2 siblings, 1 reply; 19+ messages in thread
From: Lennart Borgman (gmail) @ 2007-02-26 16:00 UTC (permalink / raw)
  To: alinsoar; +Cc: emacs-devel

A Soare wrote:

> By the way. Why emacs-paste site render the lisp code in very nice readable colors, while EmacsWiki, which is the main site to leans ELISP, does not? There is not a common administrator?
> 
> Alin Soare.


Why not tell the maintainers on EmacsWiki about that site? (Where is it? 
I do not know what site you mean with "emacs-paste site".)

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: RAW sockets
  2007-02-26 14:49 A Soare
  2007-02-26 15:48 ` Vinicius Jose Latorre
  2007-02-26 16:00 ` Lennart Borgman (gmail)
@ 2007-02-26 16:09 ` Vinicius Jose Latorre
  2 siblings, 0 replies; 19+ messages in thread
From: Vinicius Jose Latorre @ 2007-02-26 16:09 UTC (permalink / raw)
  To: alinsoar; +Cc: emacs-devel

A Soare wrote:
> By the way. Why emacs-paste site render the lisp code in very nice 
> readable colors, while EmacsWiki, which is the main site to leans 
> ELISP, does not? There is not a common administrator?


Alex Schroeder <alex@emacswiki.org>

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: RAW sockets
  2007-02-26 16:00 ` Lennart Borgman (gmail)
@ 2007-02-27  0:49   ` Stuart D. Herring
  0 siblings, 0 replies; 19+ messages in thread
From: Stuart D. Herring @ 2007-02-27  0:49 UTC (permalink / raw)
  To: Lennart Borgman (gmail); +Cc: alinsoar, emacs-devel

>> By the way. Why emacs-paste site render the lisp code in very nice
>> readable colors, while EmacsWiki, which is the main site to leans ELISP,
>> does not? There is not a common administrator?
>>
>> Alin Soare.
>
>
> Why not tell the maintainers on EmacsWiki about that site? (Where is it?
> I do not know what site you mean with "emacs-paste site".)

Alin, do you perhaps mean http://paste.lisp.org/?

Davis

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: RAW sockets
@ 2007-02-27 11:46 A Soare
  2007-02-28  2:37 ` Richard Stallman
  0 siblings, 1 reply; 19+ messages in thread
From: A Soare @ 2007-02-27 11:46 UTC (permalink / raw)
  To: Lennart Borgman (gmail); +Cc: Emacs   Dev  [emacs-devel]


> Why not tell the maintainers on EmacsWiki about that site? (Where is it? 
> I do not know what site you mean with "emacs-paste site".)
> 

http://paste.lisp.org/new/emacs

> 

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: RAW sockets
  2007-02-27 11:46 A Soare
@ 2007-02-28  2:37 ` Richard Stallman
  0 siblings, 0 replies; 19+ messages in thread
From: Richard Stallman @ 2007-02-28  2:37 UTC (permalink / raw)
  To: alinsoar; +Cc: emacs-devel

Can someone tell me the name and email address of the person who
runs http://paste.lisp.org/new/emacs?

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: RAW sockets
@ 2007-02-28 11:17 A Soare
  0 siblings, 0 replies; 19+ messages in thread
From: A Soare @ 2007-02-28 11:17 UTC (permalink / raw)
  To: rms; +Cc: Emacs   Dev  [emacs-devel]

> Can someone tell me the name and email address of the person who
> runs http://paste.lisp.org/new/emacs?

1. the the sources of LISP PASTE BOT are under MIT licence:

http://paste.lisp.org/system-server/show/lisppaste

Name	lisppaste
Version	2.4.0
Author	Brian Mastenbrook
License	MIT
Description	A pastebot written in Common Lisp

2. Project Home Page is here, and bottom there are 2 contacts:

http://common-lisp.net/project/lisppaste/

Erik Enge <erik-lisppaste@nittin.net>

Brian Mastenbrook < http://www.cs.indiana.edu/~bmastenb/ >

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2007-02-28 11:17 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-26 10:54 RAW sockets A Soare
  -- strict thread matches above, loose matches on Subject: below --
2007-02-28 11:17 A Soare
2007-02-27 11:46 A Soare
2007-02-28  2:37 ` Richard Stallman
2007-02-26 14:49 A Soare
2007-02-26 15:48 ` Vinicius Jose Latorre
2007-02-26 16:00 ` Lennart Borgman (gmail)
2007-02-27  0:49   ` Stuart D. Herring
2007-02-26 16:09 ` Vinicius Jose Latorre
2007-02-25  9:20 A Soare
2007-02-25 17:09 ` Stuart D. Herring
2007-02-25 22:23 ` Kim F. Storm
2007-02-26 13:06   ` Romain Francoise
2007-02-26 13:38     ` Kim F. Storm
2007-02-25  9:03 A Soare
2007-02-25  9:09 ` David Kastrup
2007-02-25  1:08 A Soare
2007-02-25  1:39 ` Kim F. Storm
2007-02-25  6:20 ` Stuart D. Herring

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.