all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Daniel Hackney <dan@haxney.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: [feature request] SOCK_SEQPACKET
Date: Tue, 24 Nov 2009 16:17:20 -0500	[thread overview]
Message-ID: <2e0e1cd40911241317w487d85eds4826f71cd46ab1b4@mail.gmail.com> (raw)
In-Reply-To: <jwvr5rnis0x.fsf-monnier+emacs@gnu.org>

Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>> [...] I noticed that Emacs can't use the SOCK_SEQPACKET type.
>
>> It doesn't seem like SOCK_SEQPACKET is used much, but it would be
>> nice to have, if only for completeness sake. I don't really know any
>> C-level Emacs programming (I'm pretty comfortable with Elisp), but I
>> would be willing to help out however I can if given some guidance and
>> an overview of what would need to be done.
>
> You can start with the patch below (guaranteed 100% untested). I know
> nothing about SOCK_SEQPACKET, other than what I just read in the
> manpage of `socket', so this code probably doesn't do the right thing.

I'm in pretty much the same boat, as I had never even heard of
SOCK_SEQPACKET until I saw that Uzbl uses it. I'll hack on it a bit to
test it and make sure it works, but you'll probably want someone with
legitimate socket knowledge (i.e. not me ;) to review it before
committing anything I turn out.

> The main problem I'd except would have to do with the fact that Emacs
> will typically read and write in blocks of fixed size (like 1KB or 4KB
> maybe, IIRC), so for packets smaller than that size it might work
> fine, but for larger packets you may end up having to make more
> substantial changes.

I'll check it out. I'll definitely have to spend some more time wrapping
my head around the semantics of SOCK_SEQPACKET, but I'll try to turn out
something that works reliably. Thanks for the start, though!

--
Daniel M. Hackney




  reply	other threads:[~2009-11-24 21:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-24  6:05 [feature request] SOCK_SEQPACKET Daniel Hackney
2009-11-24 20:35 ` Stefan Monnier
2009-11-24 21:17   ` Daniel Hackney [this message]
     [not found]     ` <d4bdfcb00911250553l25b89292q96b6574f7995c383@mail.gmail.com>
2009-12-03  8:04       ` Daniel Hackney
2009-12-03 18:51         ` Stefan Monnier
2009-12-03 21:23           ` Daniel Hackney
2009-12-04  1:50             ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2e0e1cd40911241317w487d85eds4826f71cd46ab1b4@mail.gmail.com \
    --to=dan@haxney.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.