diff options
author | bptato <nincsnevem662@gmail.com> | 2024-03-21 23:11:18 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-03-21 23:18:55 +0100 |
commit | 03d591d9aed833b0bdb028bfea376e0beeac8e9a (patch) | |
tree | 9a369a4af2aab1711901c06cc02d8b5497018f2a /src/io/serversocket.nim | |
parent | abb09126edcce518614efc0e2c0d55d5e42f8094 (diff) | |
download | chawan-03d591d9aed833b0bdb028bfea376e0beeac8e9a.tar.gz |
io: add bufreader
analogous to bufwriter
Diffstat (limited to 'src/io/serversocket.nim')
-rw-r--r-- | src/io/serversocket.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/io/serversocket.nim b/src/io/serversocket.nim index 020c5ed3..a6acc555 100644 --- a/src/io/serversocket.nim +++ b/src/io/serversocket.nim @@ -19,10 +19,10 @@ proc getSocketPath*(pid: int): string = {.compile: "bind_unix.c".} proc bind_unix_from_c(fd: cint, path: cstring, pathlen: cint): cint {.importc.} -proc initServerSocket*(pid: int; buffered = true; blocking = true): - ServerSocket = +proc initServerSocket*(pid: int; blocking = true): ServerSocket = createDir(SocketDirectory) - let sock = newSocket(Domain.AF_UNIX, SockType.SOCK_STREAM, Protocol.IPPROTO_IP, buffered) + let sock = newSocket(Domain.AF_UNIX, SockType.SOCK_STREAM, + Protocol.IPPROTO_IP, buffered = false) if not blocking: sock.getFd().setBlocking(false) let path = getSocketPath(pid) |