Linux socket programming, setting flags on `recv()`

I need to use the MSG_TRUNC flag on a raw socket in linux.

try std.posix.recv(self.socket, out, ???)

Is this constant provided somewhere in the standard lib, or do I need to look it up somewhere?

Also, maybe I should not use the POSIX API’s if I am targeting only linux?

they are at

std.os.linux.MSG, std.c.MSG, std.posix.MSG

1 Like