-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add UDP echo example #65
Conversation
we can use |
Great, that also works in |
em...this command is actually explained in the official tutorial |
I was referring to https://cookbook.ziglang.cc/ - sorry if I have overlooked that. Concerning the PR: I'm having trouble understanding why the CI fails. It seems to be a problem with chapter 14 / databases; on my machine, this fails with
Is that related to the UDP example? Did I accidentally use a port that is used by one of the DBs ? |
The |
most likely, yes. IIUC, the problem is that the UDP "server" doesn't get closed automatically after running the example, then CI times out at some point. Didn't check the build.zig... TCP examples are skipped for exactly that reason. Added 04-03 to that list. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
Fix #64
Since I happen to have a Windows 10 notebook on my desk, I did a quick test of the code on Windows.
zig run ...
does not work, even when I provide a file with libc paths via the--libc
flag. What does work is running the program via abuild.zig
, where you can link libc withexe.linkLibC()
.