> In that case, is there any way to get the current max packet size that 9p
> will allow for
> a read or write, or to determine if you're drawing to a local machine or
> not? I'm not seeing anything obvious under /dev or /env.

the iounit is negotiated before you mount with the Tversion/Rversion
message:

               size[4] Tversion tag[2] msize[4] version[s]
               size[4] Rversion tag[2] msize[4] version[s]

plan9 has the iounit syscall for retriving the negotiated value
for a particular file descriptor. (see iounit(2))

libdraw determines the iounit in initdraw() and sizes
its write buffer accordingly. uploading pixels into a image
will split the y/Y operation in multiple ones so they fit
into the buffer.

--
cinap

Reply via email to