You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sockets on Windows are represented by a ws2_32.SOCKET, unlike generic file handles which are represented by windows.HANDLE.
To cleanup all the verbose @ptrCast(ws2_32.SOCKET, self.handle.inner) casts in socket_windows.zig, it would be ideal to separate the file handle from pike.Handle.
Doing so would also allow removing unnecessary fields, such as async types that do not require a file handle (e.g. signal_posix.zig).
The text was updated successfully, but these errors were encountered:
Sockets on Windows are represented by a
ws2_32.SOCKET
, unlike generic file handles which are represented bywindows.HANDLE
.To cleanup all the verbose
@ptrCast(ws2_32.SOCKET, self.handle.inner)
casts insocket_windows.zig
, it would be ideal to separate the file handle frompike.Handle
.Doing so would also allow removing unnecessary fields, such as async types that do not require a file handle (e.g.
signal_posix.zig
).The text was updated successfully, but these errors were encountered: