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 overlay abstract-dgram-listen & unix-dgram-listen #252

Open
wjtxyz opened this issue Jul 16, 2024 · 2 comments
Open

support overlay abstract-dgram-listen & unix-dgram-listen #252

wjtxyz opened this issue Jul 16, 2024 · 2 comments

Comments

@wjtxyz
Copy link

wjtxyz commented Jul 16, 2024

listen for SOCK_DGRAM Unix domain socket

@vi
Copy link
Owner

vi commented Jul 16, 2024

There is already some support using unix-dgram: and abstract-dgram:. You specify two addresses, one should exist, the other should not exist.

Example:

A$ socat  - unix-sendto:/tmp/send.sock,bind=/tmp/receive.sock

B$ websocat -b unix-dgram:/tmp/send.sock:/tmp/receive.sock ws://ws.vi-server.org/mirror

A$
123
123
ABCDE
ABCDE

This mode is inconvenient and was just added for completeness.
What are advantages compared to seqpacket: / seqpacket-listen:?

@wjtxyz
Copy link
Author

wjtxyz commented Oct 25, 2024

There is already some support using unix-dgram: and abstract-dgram:. You specify two addresses, one should exist, the other should not exist.

Example:

A$ socat  - unix-sendto:/tmp/send.sock,bind=/tmp/receive.sock

B$ websocat -b unix-dgram:/tmp/send.sock:/tmp/receive.sock ws://ws.vi-server.org/mirror

A$
123
123
ABCDE
ABCDE

This mode is inconvenient and was just added for completeness. What are advantages compared to seqpacket: / seqpacket-listen:?

i wonder if this is a bug

websocat version: 1.13.0

linux version ok:

# ./websocat.aarch64-unknown-linux-musl -b - unix-dgram:/tmp/unix.sock:/tmp/unix.sock 

# ./websocat.aarch64-unknown-linux-musl -b unix-dgram:/tmp/unix2.sock:/tmp/unix2.sock -

android version fail:

#  ./websocat.aarch64-linux-android -b - unix-dgram:/tmp/android.sock:/tmp/android.sock 
websocat: No such file or directory (os error 2)
websocat: error running

# ./websocat.aarch64-linux-android -b unix-dgram:/tmp/android.sock:/tmp/android.sock -
websocat: No such file or directory (os error 2)
websocat: error running

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