[dylan-foundry/posix-sockets] f7e0a1: [posix-sockets] Initial error handling.

GitHub <[email protected]> Mon, 30 Nov 2015 08:03:35 -0800
Newsgroups gmane.comp.lang.dylan.gwydion.cvs
Message-ID <565c7357ae3cf_79393fadb3ce72a0310ec@hookshot-fe5-cp1-prd.iad.github.net.mail>
  Branch: refs/heads/master
  Home:   https://github.com/dylan-foundry/posix-sockets
  Commit: f7e0a1f95b11ad868c14a831b9e2664111087b0a
      https://github.com/dylan-foundry/posix-sockets/commit/f7e0a1f95b11ad868c14a831b9e2664111087b0a
  Author: Bruce Mitchener <[email protected]>
  Date:   2015-11-30 (Mon, 30 Nov 2015)

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

  Log Message:
  -----------
  [posix-sockets] Initial error handling.

* posix-sockets/raw-posix-sockets.intr
  (<socket-error>): New class for socket errors.
  (io-errno): Binding for io_errno which is defined
   in the IO library for getting the value of errno.
  (<socket-status>): Mapped subtype using C-FFI machinery
   so that integer return values can be converted to
   errors that are signaled when needed.
  (interface): Map a bunch of return values to <socket-status>.


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

  Changed paths:
    M posix-sockets/bindings.dylan

  Log Message:
  -----------
  [posix-sockets] Simplify result handling.

Now that we have error handling at the FFI level, we can simplify
some of our bindings.

* posix-sockets/bindings.dylan
  (bind, listen, connect): Simplify now that error handling is
   handled by the FFI layer.


Compare: https://github.com/dylan-foundry/posix-sockets/compare/19496cab9c0d...7d7c0aa73c9c

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