Skip to content

lwt.unix: add Lwt_unix.send_msgto that takes a destination address - #805

Merged
raphael-proust merged 3 commits into
ocsigen:masterfrom
anmonteiro:anmonteiro/lwt-unix-send_msgto
Nov 18, 2020
Merged

raphael-proust merged 3 commits into
ocsigen:masterfrom
anmonteiro:anmonteiro/lwt-unix-send_msgto

Conversation

@anmonteiro

Copy link
Copy Markdown
Contributor

This is useful to send IO Vectors over unconnected sockets (e.g. UDP).

This is useful to send IO Vectors over unconnected sockets (e.g. UDP)

@raphael-proust raphael-proust left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also needs a test. There's already one for send_msg in test/unix/test_lwt_bytes.ml so it'd just be a case of adapting it.

Comment thread src/unix/unix_c/unix_recv_send_utils.c Resolved
Comment thread src/unix/lwt_unix.cppo.mli Resolved
Comment thread src/unix/unix_c/unix_send_msg_byte.c Resolved
@raphael-proust

Copy link
Copy Markdown
Collaborator

It's good as far as I can tell. Unfortunately this is not very far because of my unfamiliarity with the C bindings. Anyone else can give this a look?

@aantron
aantron self-requested a review September 25, 2020 05:41

@aantron aantron left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code LGTM.

@raphael-proust
raphael-proust merged commit 20e8836 into ocsigen:master Nov 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants