home.social

#unixsocket — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #unixsocket, aggregated by home.social.

  1. 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

  2. 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 :ablobcatrave:

    #UnixSocket #go #golang

  3. I tried implementing a UNIX socket handler (L58) in Go :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

    forgejo.lukasrotermund.de/lrot

    #go #golang #UnixSocket

  4. 🎉 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! 🧙‍♂️
    tarsnap.com/spiped.html #cryptictools #Spiped #UNIXsocket #cryptography #HackerNews #ngated

  5. @deavmi 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.

    github.com/madnuttah/unbound-d

    , and . The holy trinity.

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