diff options
author | bptato <nincsnevem662@gmail.com> | 2024-06-08 23:18:59 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-06-08 23:19:45 +0200 |
commit | 8776e58beb524ff26c171e0b8765aefcfd56fcc9 (patch) | |
tree | 323ccca1a6511d784cc641e3d706e62fd94c27b1 /src/io/serversocket.nim | |
parent | dee468d502a2d2e0aa6ae2f8365c098f72acc0c9 (diff) | |
download | chawan-8776e58beb524ff26c171e0b8765aefcfd56fcc9.tar.gz |
buffer: add autofocus
naturally, it's opt-in
Diffstat (limited to 'src/io/serversocket.nim')
-rw-r--r-- | src/io/serversocket.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/io/serversocket.nim b/src/io/serversocket.nim index dff6de70..abb3491a 100644 --- a/src/io/serversocket.nim +++ b/src/io/serversocket.nim @@ -14,6 +14,9 @@ const SocketPathPrefix = "cha_sock_" proc getSocketName*(pid: int): string = SocketPathPrefix & $pid +func getFd*(ssock: ServerSocket): SocketHandle = + return ssock.sock.getFd() + proc getSocketPath*(socketDir: string; pid: int): string = socketDir / getSocketName(pid) |