Skip to content

Provide a way to create sockets #20

Closed

Description

@rylev

This is perhaps dependent on resolving #1 and #4, but a large gap in the wasi's capabilities is that there is currently no way to create sockets (i.e. no analogue to accept or connect). There are currently ways to read and write to sockets (sock_send and sock_recv), but without a good way to get a socket fd, these are not terribly useful.

Given that a major early use case for wasi is in the FaaS and "edge computing" space where networking is pretty important, it makes sense for filling out the socket API to be high on the priority list.

Activity

  1. npmccallum commented on Apr 22, 2019

    @npmccallum
    Contributor

    This is a requirement for us.

  2. maspe36 commented on Jun 29, 2020

    @maspe36

    Is there a working spec somewhere for this feature?

  3. added a commit that references this issue on Jan 19, 2022
    50d3fa9
  4. sunfishcode commented on Dec 3, 2024

    @sunfishcode
    Member

    The wasi-sockets API, which is now part of WASI, includes a way to create sockets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions