Are there standardized responses for UNIX socket connections? For example, `OK\n` or `ERROR\n` for unknown commands? Or is it totally up to the implementation?

#unix #UnixSocket #linux

I love how simple UNIX sockets are! All you have to do is add a listener to a file handle and send random bytes as data to the socket file, e.g. via `echo "hello world" | socat - UNIX-CONNECT:/tmp/myproject1000/mysocket.sock`.

Playing around with it is so much fun  

#UnixSocket #go #golang

I tried implementing a UNIX socket handler (L58) in Go  in the following file. Would you consider this OK, valid, or correct?

The `.sock` file is cleaned up on `ctx.Done()`. I kind of achieved my goal. I have to add a pre-cleanup in case of an ungraceful shutdown. However, in case of a canceled context, it works right now

https://forgejo.lukasrotermund.de/lrotermund/libre-activity-tracker/src/branch/wip-tracker-and-socket/internal/tracker/socket_server.go

#go #golang #UnixSocket

Cookie monster!

🎉 Wow, another cryptic tool with a name resembling a tangled mass of letters: Spiped! 🚀 Because clearly, #SSH wasn't secure or confusing enough, now you can use this mystical pipe to send your data on a magical journey through a UNIX socket labyrinth. 🔐 Just remember, if you can pronounce it, you're already halfway to being a cryptographic wizard! 🧙‍♂️
https://www.tarsnap.com/spiped.html #cryptictools #Spiped #UNIXsocket #cryptography #HackerNews #ngated
Tarsnap - The spiped secure pipe daemon

The spiped secure pipe daemon

@deavmi #UnixSocket is more performant but you will need to use a proxy container. If you're interested how I made it work, check my github page.

https://github.com/madnuttah/unbound-docker/blob/main/doc/DETAILS.md#cachedb-redis

#redis, #pihole and #unbound. The holy trinity.

Oops, there's a code block off I see.

unbound-docker/doc/DETAILS.md at main · madnuttah/unbound-docker

🛡️ This Unbound Docker image is based on Alpine Linux with focus on security, privacy, performance and a small image size. And with Pi-hole in mind. - madnuttah/unbound-docker

GitHub
Understanding Unix Domain Sockets in Golang

In Golang, a socket is a communication endpoint that allows a program to send and receive data over a...

DEV Community 👩‍💻👨‍💻
@mayaeh 私の環境では、コメントアウトされてたので外す必要がありました
# Unix socket.
#
# Specify the path for the Unix socket that will be used to listen for
# incoming connections. There is no default, so Redis will not listen
# on a unix socket when not specified.
#
#unixsocket /var/run/redis/redis-server.sock
#unixsocketperm 700