Skip to content

Network: UDP ? #64

Closed
Closed
@FObersteiner

Description

@FObersteiner

I was wondering if it would be useful to have a UDP example? (related: #44)

I recently dug into this, and it was working out quite nicely with Zig 0.12 / 0.13-master. Here's a gist for an "echo" via UDP on the loopback / localhost (could also be a Unix domain socket, as an extension maybe). What the gist shows is basically sockets programming since std.net does not have abstractions for UDP (yet). There's no connection/handshake as in TCP, so there's no "client" or "server" in that sense.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions