[dylan-foundry/posix-sockets] e367d1: [posix-sockets] Extract family from sockaddr.

GitHub <[email protected]> Thu, 26 Nov 2015 00:57:44 -0800
Newsgroups gmane.comp.lang.dylan.gwydion.cvs
Message-ID <5656c98880e65_e3b3f87b562529c788ef@hookshot-fe3-cp1-prd.iad.github.net.mail>
  Branch: refs/heads/master
  Home:   https://github.com/dylan-foundry/posix-sockets
  Commit: e367d1e48261111ee63987c6e99ea841e8a219cf
      https://github.com/dylan-foundry/posix-sockets/commit/e367d1e48261111ee63987c6e99ea841e8a219cf
  Author: Bruce Mitchener <[email protected]>
  Date:   2015-11-26 (Thu, 26 Nov 2015)

  Changed paths:
    M posix-sockets/socket-address.dylan

  Log Message:
  -----------
  [posix-sockets] Extract family from sockaddr.

Instead of telling a <socket-address> what address family it is,
extract it form the <sockaddr*>. This simplifies creating a
<socket-address> when we only have the <sockaddr*>, like in
accept().

* posix-sockets/socket-address.dylan
  (<socket-address>): Remove socket-address-family slot.
  (raw-socket-address-family): Function for getting the address family
   from a raw <sockaddr*>. It depends on the fact that the memory
   layout for all "struct sockaddr" types seem to have the family
   in a consistent location.
  (socket-address-family): Extract the address family from a socket
   address.
  (make on <socket-address>): No longer accept family as a keyword
   argument, but extract it from the sockaddr. Also, don't pass
   it along to the concrete socket address class constructor.


  Commit: 92bca24c1a2c40eb05bfc9a4eed617f6ed5e128a
      https://github.com/dylan-foundry/posix-sockets/commit/92bca24c1a2c40eb05bfc9a4eed617f6ed5e128a
  Author: Bruce Mitchener <[email protected]>
  Date:   2015-11-26 (Thu, 26 Nov 2015)

  Changed paths:
    M posix-sockets/module-posix-sockets.dylan
    M posix-sockets/raw-posix-sockets.intr

  Log Message:
  -----------
  [posix-sockets] Add more MSG_* flag constants.

This adds bindings for:

* MSG_PEEK
* MSG_EOR
* MSG_TRUNC
* MSG_CTRUNC
* MSG_WAITALL

* posix-sockets/raw-posix-sockets.intr: Import additional MSG_*
  constants.

* posix-sockets/module-posix-sockets.dylan: Export them.


  Commit: 0c297e0ec7ae2628b9e7de80b4a773e58d8ea7b3
      https://github.com/dylan-foundry/posix-sockets/commit/0c297e0ec7ae2628b9e7de80b4a773e58d8ea7b3
  Author: Bruce Mitchener <[email protected]>
  Date:   2015-11-26 (Thu, 26 Nov 2015)

  Changed paths:
    M posix-sockets/socket.dylan

  Log Message:
  -----------
  [posix-sockets] <server-socket> is not <bound-socket>.

Since being bound and being a server socket are 2 separate states
and it isn't valid to use a <server-socket> where you'd use a
<bound-socket>, make them disjoint.

* posix-sockets/socket.dylan
  (<server-socket>): Inherit from <socket> instead of <bound-socket>.


Compare: https://github.com/dylan-foundry/posix-sockets/compare/048ea71978a9...0c297e0ec7ae

_______________________________________________
chatter mailing list
[email protected]
https://lists.opendylan.org/mailman/listinfo/chatter