[dylan-foundry/posix-sockets] 7843ff: [posix-sockets] Seal <socket> subclass constructio...

GitHub <[email protected]> Wed, 25 Nov 2015 16:02:35 -0800
Newsgroups gmane.comp.lang.dylan.gwydion.cvs
Message-ID <56564c1be8ca7_2fc3f94941772b81204b0@hookshot-fe3-cp1-prd.iad.github.net.mail>
  Branch: refs/heads/master
  Home:   https://github.com/dylan-foundry/posix-sockets
  Commit: 7843ffe52f7c4cee87f098e0a3b634a865d953a9
      https://github.com/dylan-foundry/posix-sockets/commit/7843ffe52f7c4cee87f098e0a3b634a865d953a9
  Author: Bruce Mitchener <[email protected]>
  Date:   2015-11-26 (Thu, 26 Nov 2015)

  Changed paths:
    M posix-sockets/socket.dylan

  Log Message:
  -----------
  [posix-sockets] Seal <socket> subclass construction.

This helps remove some unnecessary dynamic dispatch.

* posix-sockets/socket.dylan
  (<bound-socket>, <server-socket>): Seal make and initialize.


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

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

  Log Message:
  -----------
  [posix-sockets] Bind <sockaddr-storage>, provide pointer types.

We need <sockaddr-storage> so that we allocate enough memory in
certain cases. Also, we need pointer types for these structs.

* posix-sockets/raw-posix-sockets.intr
  (struct sockaddr_storage): Import as <sockaddr-storage>.
  (<sockaddr-in>, <sockaddr-in6>, <sockaddr-storage>): Provide
   pointer types.


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

  Changed paths:
    M posix-sockets/bindings.dylan

  Log Message:
  -----------
  [posix-sockets] Allocate enough memory during accept().

The socket address should be allocated as a <sockaddr-storage>
so that we are sure to be allocating enough memory to store
whatever accept() might store there.

* posix-sockets/bindings.dylan
  (accept): Use <sockaddr-storage> instead of <sockaddr> for
   the storage of the socket address of the incoming connection.


Compare: https://github.com/dylan-foundry/posix-sockets/compare/f0bb19135a73...c9f94cbf3399

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