Search
Monday, 29th of November 2021, 15:22:20 UTC
15:23:14
Guest74
that's unfortunate. I'm assuming there's nothing more clever than reading bytes until a terminating byte?
15:23:29
Shinmera
send a fixed number of bytes first that says how many bytes to follow.
15:24:07
Guest74
oh i'm not making a protocol. This is for dbus.
15:24:35
Shinmera
yeah, not much you can do except check if there's anything to read at all.
15:24:43
Shinmera
and then just read the full message.
15:25:52
Guest74
by check you mean something like LISTEN?
15:26:12
Guest74
sometimes I wish i had taken comp sci.
15:26:29
flip214
ioctl(fd,FIONREAD,&bytes_available)
15:27:24
Shinmera
Sure, whatever the SBCL equivalent interface is
15:27:29
Shinmera
I only know usocket's.
15:27:42
Guest74
oh, that's interesting.
15:28:26
Guest74
Oh, does usocket have local sockets? I'd rather use something not implementation specific, but that doesnt require some random c library being installed.
15:28:26
flip214
of course, the value might change at any time...
15:29:52
flip214
on Linux, a local TCP socket is mostly the same as a unix socket (performance-wise)
15:30:03
Shinmera
Guest74: it does not, afaik.
15:40:46
etimmons
scymtym_: I thought READ-SEQUENCE could only read less than the specified length if the end of file was reached
15:44:01
Guest74
looks like that's what clhs says
15:44:38
Shinmera
Yeah, it's unfortunately not suitable for async-ish stuff :(
16:45:57
scymtym_
etimmons: sure. that's why i brought up the question of how available data should be defined and mentioned closed connections
Tuesday, 30th of November 2021, 3:22:20 UTC