> Hello,
> 
> I'm not sure if I'm misunderstanding this but,
> i need to write to a ctl file some commands,
> so to parse them correctly i need the complete
> command (commands file should be 10k or so, but
> may be more).
> 
> How can I know when a write is finished to start
> parsing the commands? (i mean, if occurs
> that the write is done with multiple requests ).
> 
> Twrite tag[2] fid[4] offset[8] count[4] data[count]
> 
> Is there any special mark on those fields? what is
> the man page i am missing?

If you're writing a file server, look at the file servers that are there
to see what they look like.  ramfs is a nice and simple example.

If you send commands in a single write operation, they will
arrive in a single write operation.  read9pmsg(2)
gathers just the right number of bytes for you and convM2S(2)
converts the message to a C struct.

        Sape

Reply via email to