std.Io.Threaded: windows networking without ws2_32 #31571
@ -1377,6 +1397,7 @@ pub const Stream = struct {
pubconstServer=struct{
socket:Socket,
options:AcceptOptions,
how about instead, added parameter to accept function, documenting that the same values as used to bind the socket must be used? this will have no differences across operating systems
Required parameter or required field, doesn't matter to me.
@ -125,6 +125,7 @@ pub fn eql(a: HostName, b: HostName) bool {
pubconstLookupOptions=struct{
port:u16,
request_canonical_name:bool=false,
should this be instead making canonical_name_buffer optional and default to null ?
That's what I thought originally, but at least the linux code path seemed to require it to be non-null even when not requested.
Looks like lookupDns uses it, which is kind of silly since it's a fixed-size buffer whose lifetime doesn't extend to the caller.
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?