Skip to content
New issue

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

Support for Linux abstract namespace. #6

Open
inoop opened this issue Jan 11, 2012 · 2 comments
Open

Support for Linux abstract namespace. #6

inoop opened this issue Jan 11, 2012 · 2 comments

Comments

@inoop
Copy link

inoop commented Jan 11, 2012

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.

@timothyklim
Copy link

Hi! Do you have pull request for that?

@inoop
Copy link
Author

inoop commented Jun 12, 2012

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)

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

No branches or pull requests

2 participants