zig-network icon indicating copy to clipboard operation
zig-network copied to clipboard

A smallest-common-subset of socket functions for crossplatform networking, TCP & UDP

Results 17 zig-network issues
Sort by recently updated
recently updated
newest added

Hi! First of all, thanks for providing such a nice abstraction library - this really saves me a lot because I'd like to use UDP in Zig. As I read...

There are plans to upstream this library into the zig std library. This issue is here to create a concrete plan and track progress. Some considerations: - Define a clear...

The current implementation of connect() appears to use a fixed constant (0x800) for all BSD family targets, but the stdlib has this constant defined for targets that support it in...

nice articles on portable sockets I found: [introduction to raw sockets](https://tuprints.ulb.tu-darmstadt.de/6243/1/TR-18.pdf) and [portable sockets basics](https://etherealwake.com/2021/01/portable-sockets-basics/). Other implementations - https://github.com/Ybalrid/kissnet - https://github.com/fpagliughi/sockpp Not sure, if relevant: https://github.com/microsoft/WSL/issues/4240 Also: This seems to...

When running the async example, an error.WouldBlock is thrown by the accept() function. It seems that this either means some issue with the event loop, or that accept also has...

Here I use a suspent and resume event loop for the async example. Otherwise it just immediately ends with a WouldBlock error.

I have a race condition between two threads, one trying to close a socket and the other reading from it as shown in the code below, but the thread calling...

Had that error while trying to add the library to my project. Line 1107 in network.zig. The test cases in test-suite.zig also cause that error. I am on windows 10,...

Hi @MasterQ32 ! When Zig 0.7 will be released, I plan to use *zig-network* in combination with *h11* to try to build an HTTP client library. Zig is young and...

When linking in libc I've noticed that compiling for Linux will result in a compilation error: ``` ❯ zig build -Dtarget=native-linux .\zig-network\network.zig:895:39: error: container 'std.c' has no member called 'getpeername'...