Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Need to explicitly pass in socket info to the procket NIF, rather than it tracking the data internally. This should make it much safer and reliable. Changes to the interface: open/2 -> open/1 : vestigal protocol arg removed, stick to streams. Erlang module changed to match (along with the bizarre passing in of the port as a protocol, who did that? o_O) Returns the socket descriptor listening on the Unix socket: {ok, FD} poll/0 -> poll/1 : takes the socket descriptor close/0 -> close/2 : close(SocketPath, SocketDescriptor), closes the socket descriptor and deletes the socket path.
- Loading branch information
Showing
3 changed files
with
59 additions
and
81 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
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