Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add recvfrom/4 to return the socket address of the packet. recvfrom/4 takes 2 new args: flags and the size of the socket structure which is allocated by the NIF. If the size is not large enough, the socket address will be silently truncated.
- Loading branch information
Showing
2 changed files
with
37 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters