[riot-commits] [RIOT-OS/RIOT] 7ef177: sock: Introduction of new application layer API

Kaspar Schleiser kaspar at schleiser.de
Tue Sep 27 23:10:37 CEST 2016


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 7ef177a8cb8a068fec9b925cbf3e3b5305c8a95a
      https://github.com/RIOT-OS/RIOT/commit/7ef177a8cb8a068fec9b925cbf3e3b5305c8a95a
  Author: Martine Lenders <mlenders at inf.fu-berlin.de>
  Date:   2016-08-18 (Thu, 18 Aug 2016)

  Changed paths:
    A sys/include/net/sock.h
    A sys/include/net/sock/addr.h
    A sys/include/net/sock/flags.h
    A sys/include/net/sock/ip.h
    A sys/include/net/sock/tcp.h
    A sys/include/net/sock/udp.h

  Log Message:
  -----------
  sock: Introduction of new application layer API

This introduces a new alternative and better API to `conn`. It differs in the
following aspects:

* a common address type for both IPv4 and IPv6 addresses is introduced
* communication end-points are abstracted as end-point types `sock_x_ep_t`,
  containing the address, its family, its port (if required for protocol) and
  the interface identifier.
* All functions require some kind of state. Sending of datagrams to the same
  source or replying to incoming datagrams is thus simplified
* TCP connection establishment was overall reworked: connected sockets and
  listening sockets are now two distinct types. An accept on a listening socket
  than yields a connected socket


  Commit: b71c2f334a8a7a4cabe48a3ab927402906a9d54d
      https://github.com/RIOT-OS/RIOT/commit/b71c2f334a8a7a4cabe48a3ab927402906a9d54d
  Author: Martine Lenders <mail at martine-lenders.eu>
  Date:   2016-08-19 (Fri, 19 Aug 2016)

  Changed paths:
    M sys/include/net/sock/addr.h
    M sys/include/net/sock/ip.h
    M sys/include/net/sock/tcp.h
    M sys/include/net/sock/udp.h

  Log Message:
  -----------
  fixup! sock: Introduction of new application layer API


  Commit: 44af8765aff227e999f77ee19a05a3fb20c21524
      https://github.com/RIOT-OS/RIOT/commit/44af8765aff227e999f77ee19a05a3fb20c21524
  Author: Martine Lenders <mail at martine-lenders.eu>
  Date:   2016-08-19 (Fri, 19 Aug 2016)

  Changed paths:
    M sys/include/net/sock/addr.h

  Log Message:
  -----------
  fixup! sock: Introduction of new application layer API


  Commit: 6f06deff40270da21ef7c9e020c4bc2300a243c9
      https://github.com/RIOT-OS/RIOT/commit/6f06deff40270da21ef7c9e020c4bc2300a243c9
  Author: Martine Lenders <mail at martine-lenders.eu>
  Date:   2016-08-19 (Fri, 19 Aug 2016)

  Changed paths:
    M sys/include/net/sock/ip.h
    M sys/include/net/sock/tcp.h
    M sys/include/net/sock/udp.h

  Log Message:
  -----------
  fixup! sock: Introduction of new application layer API


  Commit: 01b0975072c9d74d95afe68547d4bea0a9e96b19
      https://github.com/RIOT-OS/RIOT/commit/01b0975072c9d74d95afe68547d4bea0a9e96b19
  Author: Martine Lenders <mail at martine-lenders.eu>
  Date:   2016-08-19 (Fri, 19 Aug 2016)

  Changed paths:
    M sys/include/net/sock.h
    M sys/include/net/sock/addr.h
    R sys/include/net/sock/flags.h
    M sys/include/net/sock/ip.h
    M sys/include/net/sock/tcp.h
    M sys/include/net/sock/udp.h

  Log Message:
  -----------
  fixup! sock: Introduction of new application layer API


  Commit: b24d9de9aec6476e85405d467de91c9980f54ebd
      https://github.com/RIOT-OS/RIOT/commit/b24d9de9aec6476e85405d467de91c9980f54ebd
  Author: Martine Lenders <mail at martine-lenders.eu>
  Date:   2016-08-19 (Fri, 19 Aug 2016)

  Changed paths:
    M sys/include/net/sock.h
    R sys/include/net/sock/addr.h
    M sys/include/net/sock/ip.h
    M sys/include/net/sock/tcp.h
    M sys/include/net/sock/udp.h

  Log Message:
  -----------
  fixup! sock: Introduction of new application layer API


  Commit: bb7736ac97f40e066fd5423179fbaffefc1aa718
      https://github.com/RIOT-OS/RIOT/commit/bb7736ac97f40e066fd5423179fbaffefc1aa718
  Author: Martine Lenders <mail at martine-lenders.eu>
  Date:   2016-08-19 (Fri, 19 Aug 2016)

  Changed paths:
    M sys/include/net/sock.h

  Log Message:
  -----------
  fixup! sock: Introduction of new application layer API


  Commit: a4fd05c6f684f086fe8b1e9ffe0dbd03f00655d4
      https://github.com/RIOT-OS/RIOT/commit/a4fd05c6f684f086fe8b1e9ffe0dbd03f00655d4
  Author: Martine Lenders <mail at martine-lenders.eu>
  Date:   2016-08-20 (Sat, 20 Aug 2016)

  Changed paths:
    M sys/include/net/sock/udp.h

  Log Message:
  -----------
  fixup! sock: Introduction of new application layer API

Fix wrongly typedef'd endpoint


  Commit: 278f046d1d8161e391f556a81e76d87d7f5f997d
      https://github.com/RIOT-OS/RIOT/commit/278f046d1d8161e391f556a81e76d87d7f5f997d
  Author: Martine Lenders <mail at martine-lenders.eu>
  Date:   2016-08-20 (Sat, 20 Aug 2016)

  Changed paths:
    M sys/include/net/sock.h

  Log Message:
  -----------
  fixup! sock: Introduction of new application layer API

Don't use netif parameter for static IP end-point initializers


  Commit: a41bc13767da44ff5c7ae7524a116729f8c62e15
      https://github.com/RIOT-OS/RIOT/commit/a41bc13767da44ff5c7ae7524a116729f8c62e15
  Author: Martine Lenders <mail at martine-lenders.eu>
  Date:   2016-08-20 (Sat, 20 Aug 2016)

  Changed paths:
    M sys/include/net/sock/ip.h
    M sys/include/net/sock/tcp.h
    M sys/include/net/sock/udp.h

  Log Message:
  -----------
  fixup! sock: Introduction of new application layer API

Reword confusing out-parameter doc in create functions


  Commit: 1f74eae42438e45e8575052c3d992fcaf90abe03
      https://github.com/RIOT-OS/RIOT/commit/1f74eae42438e45e8575052c3d992fcaf90abe03
  Author: Martine Lenders <mail at martine-lenders.eu>
  Date:   2016-08-22 (Mon, 22 Aug 2016)

  Changed paths:
    M sys/include/net/sock.h
    M sys/include/net/sock/ip.h

  Log Message:
  -----------
  fixup! sock: Introduction of new application layer API

Fix some typedefs


  Commit: 877cad9d66293bbc100e505e0f3e972bd3035787
      https://github.com/RIOT-OS/RIOT/commit/877cad9d66293bbc100e505e0f3e972bd3035787
  Author: Martine Lenders <mail at martine-lenders.eu>
  Date:   2016-08-22 (Mon, 22 Aug 2016)

  Changed paths:
    M sys/include/net/sock.h

  Log Message:
  -----------
  fixup! sock: Introduction of new application layer API

Simplify static intializers.


  Commit: 26ee7248d568c52bce5c48c2392e511810c4e16c
      https://github.com/RIOT-OS/RIOT/commit/26ee7248d568c52bce5c48c2392e511810c4e16c
  Author: Martine Lenders <mail at martine-lenders.eu>
  Date:   2016-08-23 (Tue, 23 Aug 2016)

  Changed paths:
    M sys/include/net/sock.h

  Log Message:
  -----------
  fixup! sock: Introduction of new application layer API

Fix inheritence of _sock_tl_ep.


  Commit: 777c8f77b60c2300c1e6645e8068d8a326e88d95
      https://github.com/RIOT-OS/RIOT/commit/777c8f77b60c2300c1e6645e8068d8a326e88d95
  Author: Martine Lenders <mail at martine-lenders.eu>
  Date:   2016-08-24 (Wed, 24 Aug 2016)

  Changed paths:
    M sys/include/net/sock/tcp.h

  Log Message:
  -----------
  fixup! sock: Introduction of new application layer API

Add `-ECONNABORT` return for sock_tcp_read and sock_tcp_write.


  Commit: 002be06c795b8e2b5cf259ce4b9705788d500bb1
      https://github.com/RIOT-OS/RIOT/commit/002be06c795b8e2b5cf259ce4b9705788d500bb1
  Author: Martine Lenders <mail at martine-lenders.eu>
  Date:   2016-08-25 (Thu, 25 Aug 2016)

  Changed paths:
    M sys/include/net/sock/tcp.h

  Log Message:
  -----------
  fixup! sock: Introduction of new application layer API

sock_tcp: more error code specifications and fixes


  Commit: ce205afc57856ca3dbfd286c4fd033966eedb171
      https://github.com/RIOT-OS/RIOT/commit/ce205afc57856ca3dbfd286c4fd033966eedb171
  Author: Martine Lenders <mail at martine-lenders.eu>
  Date:   2016-08-25 (Thu, 25 Aug 2016)

  Changed paths:
    M sys/include/net/sock/ip.h

  Log Message:
  -----------
  fixup! sock: Introduction of new application layer API

sock_ip: Provide proto parameter to send in case sock == NULL.


  Commit: 73861e2c153c1ca11ac59d7350bc85ad72d22302
      https://github.com/RIOT-OS/RIOT/commit/73861e2c153c1ca11ac59d7350bc85ad72d22302
  Author: Martine Lenders <mail at martine-lenders.eu>
  Date:   2016-08-25 (Thu, 25 Aug 2016)

  Changed paths:
    M sys/include/net/sock/ip.h
    M sys/include/net/sock/tcp.h
    M sys/include/net/sock/udp.h

  Log Message:
  -----------
  fixup! sock: Introduction of new application layer API

Fix some typos


  Commit: d17ef910f0de6080d7d8a25b4eecdbac77547b09
      https://github.com/RIOT-OS/RIOT/commit/d17ef910f0de6080d7d8a25b4eecdbac77547b09
  Author: Martine Lenders <mail at martine-lenders.eu>
  Date:   2016-09-02 (Fri, 02 Sep 2016)

  Changed paths:
    M sys/include/net/sock.h

  Log Message:
  -----------
  fixup! sock: Introduction of new application layer API

Include missing header


  Commit: 09703e1fdf7f627a782ee1c00f0bb74fb870348f
      https://github.com/RIOT-OS/RIOT/commit/09703e1fdf7f627a782ee1c00f0bb74fb870348f
  Author: Martine Lenders <mail at martine-lenders.eu>
  Date:   2016-09-02 (Fri, 02 Sep 2016)

  Changed paths:
    M sys/include/net/sock/ip.h
    M sys/include/net/sock/udp.h

  Log Message:
  -----------
  fixup! sock: Introduction of new application layer API

Add more error classes


  Commit: 526917b8cc2ef72243aeb6ac414a9863ef1bac56
      https://github.com/RIOT-OS/RIOT/commit/526917b8cc2ef72243aeb6ac414a9863ef1bac56
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2016-09-27 (Tue, 27 Sep 2016)

  Changed paths:
    A sys/include/net/sock.h
    A sys/include/net/sock/ip.h
    A sys/include/net/sock/tcp.h
    A sys/include/net/sock/udp.h

  Log Message:
  -----------
  Merge pull request #5758 from miri64/sock/api/initial

sock: Introduction of new application layer API


Compare: https://github.com/RIOT-OS/RIOT/compare/f7056cf976b8...526917b8cc2e


More information about the commits mailing list