We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First off, thanks for JUDS, it's really helpful.
I've slightly modified the code to support the Linux abstract namespace. In UnixDomainSocket.c, in the method sockaddr_init, I've added the following:
// Linux abstract namespace if (socketFile[0]=='@') sa->sun_path[0] = 0;
The following code connects to a domain socket in the abstract namespace:
UnixDomainSocketClient socket = new UnixDomainSocketClient("@some_socket" JUDS.SOCK_STREAM); socket.getOutputStream().write("Ohai!".getBytes()); socket.close();
It might be nice to either merge this two-line fix, or perhaps support the abstract namespace in another way.
The text was updated successfully, but these errors were encountered:
Hi! Do you have pull request for that?
Sorry, something went wrong.
Unfortunately, I do not. The modified file is actually on a computer that's on the other side of the world and not connected to the internet :-P
On Mon, Jun 11, 2012 at 2:30 PM, Timothy Klim [email protected] wrote:
Hi! Do you have pull request for that? Reply to this email directly or view it on GitHub: #6 (comment)
Reply to this email directly or view it on GitHub: #6 (comment)
No branches or pull requests
First off, thanks for JUDS, it's really helpful.
I've slightly modified the code to support the Linux abstract namespace. In UnixDomainSocket.c, in the method sockaddr_init, I've added the following:
// Linux abstract namespace
if (socketFile[0]=='@')
sa->sun_path[0] = 0;
The following code connects to a domain socket in the abstract namespace:
UnixDomainSocketClient socket = new UnixDomainSocketClient("@some_socket" JUDS.SOCK_STREAM);
socket.getOutputStream().write("Ohai!".getBytes());
socket.close();
It might be nice to either merge this two-line fix, or perhaps support the abstract namespace in another way.
The text was updated successfully, but these errors were encountered: