[viff-devel] [issue71] Allow self-sending

Martin Geisler tracker at viff.dk
Wed Oct 8 06:50:45 PDT 2008


New submission from Martin Geisler <mg at daimi.au.dk>:

At some point it became illegal to send data to oneself, and so the
code looks like this in several places (this is from open):

  if peer_id == self.id:
      d = Share(self, share.field, (share.field(peer_id), share))
  else:
      d = self._expect_share(peer_id, share.field)

I think the rationale for disallowing self-sending is that the players
have no ShareExchanger for themselves, and so one cannot _expect_data
or sendData to oneself.

But it should still be possible to clean up the code by handling this
in one central place. Maybe like it is done in _exchange_shares.

----------
keyword: design
messages: 263
nosy: mg
status: unread
title: Allow self-sending
type: wish

____________________________________
VIFF Issue Tracker <tracker at viff.dk>
<http://tracker.viff.dk/issue71>
____________________________________


More information about the viff-devel mailing list