aboutsummaryrefslogtreecommitdiff
path: root/src/zig_llvm.cpp
diff options
context:
space:
mode:
authorKenta Iwasaki <kenta@lithdew.net>2021-09-11 19:03:14 +0900
committerAndrew Kelley <andrew@ziglang.org>2021-09-12 23:36:44 -0400
commitc4f97d336528d5b795c6584053f072cf8e28495e (patch)
tree4a165e46fe4332404ddd2d965e8ea827dbe6eeb6 /src/zig_llvm.cpp
parent211856693193b6e5ba4d58bdec1afdb839071fb3 (diff)
downloadzig-c4f97d336528d5b795c6584053f072cf8e28495e.tar.gz
zig-c4f97d336528d5b795c6584053f072cf8e28495e.zip
os: usingnamespace fixes for std.x.os.Socket and std.os.TCP
Extract existing constants to do with TCP socket options into a 'TCP' namespace. Export 'MSG' and 'TCP' from std.os.{linux, windows} into std.c. Fix compile errors to do with std.x.os.Socket methods related to setting TCP socket options. Handle errors in the case that an interface could not be resolved in an IPv6 address on Windows. Tested using Wine with the loopback interface disabled. Have all instantiations of std.x.os.Socket on Windows instantiate an overlapped socket descriptor. Fixes the '1ms read timeout' test in std.x.net.tcp.Client. The test would previously deadlock, as read timeouts only apply to overlapped sockets. Windows documentation by default recommends that most instantiations of sockets on Windows be overlapped sockets (s.t. they may operate in both blocking or nonblocking mode when operated with WSA* syscalls). Refer to the documentation for WSASocketA for more info.
Diffstat (limited to 'src/zig_llvm.cpp')
0 files changed, 0 insertions, 0 deletions