bug-serveez
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-serveez] Preserving object props on sockets


From: Thien-Thi Nguyen
Subject: Re: [bug-serveez] Preserving object props on sockets
Date: Wed, 04 Sep 2013 22:50:54 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

() Thien-Thi Nguyen <address@hidden>
() Wed, 24 Apr 2013 14:40:02 +0200

   See also new branch ‘q-socket-objprop’, which is just ‘q-upd-userdata’
   squashed and refined a bit (more ready for eventual merge to ‘p’).

   Time to do other stuff now; will revisit in a few days...

After much thought, i've decided that it is best to explicitly NOT
support object properties on UDP and ICMP (generally, connectionless)
sockets.  This is motivated partly by implementation difficulty and
partly by philosophical considerations (i.e., does "object identity"
make sense for such a socket, and if so, could it be possible that
the meaning may be application-dependent?).

I think if the information of interest for the client code is the remote
address (for instance) of a connectionless socket, the client code
should be responsible for extracting that from the socket object and
stick it in a hash table (or whatever), directly.

Does that sound reasonable?

-- 
Thien-Thi Nguyen
   GPG key: 4C807502
   (if you're human and you know it)
      read my lisp: (responsep (questions 'technical)
                               (not (via 'mailing-list)))
                     => nil

Attachment: pgp1Zl5Ryy4wv.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]