Posix scatter/gather socket sendmsg/recvmsg routines are not implemented.
Whilst studying Issue #2253, I discovered that Posix scatter/gather routines recvmsg() &
sendmsg() are not implemented. Obviously there are not many current users of those
routines. Scatter/gather is a useful technique, so it would be useful if Scala Native
supported those two.
I tremble to say that anything is easy, but those two should be on the easy side. There are some data structures to consider so it will not be trivial. As usual, the hard part will be testing (but I think that is surmountable and the essential part can be done in unit-test).
Oh for a long, lazy summer weekend, just for hacking.
An attempt to implement these two should almost certainly wait until after PR #2254 has been merged.
PR #2254 has merged. Now waiting for merge of PR #2258.
Private proof-of-concept code works just fine.
This Issue is focused on the posix socket.scala methods sendmsg & recvmsg.
I am creating a new Issue to capture the fact that similar posix sys/uio scatter/gather
routines writev & readv would benefit from work. Although the concept is similar,
I want to keep the two 'chunks' of work separated. This should help with both
development and review.