Re: Unnecessary Frame Fragmentation using beepcore-c?
David C Niemi <[email protected]> Tue, 16 Sep 2003 20:55:49 -0400 (EDT)
| Newsgroups | gmane.network.beep.beepcore.c.general |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 16 Sep 2003, Darren New wrote: > William J. Mills wrote: > > bpc_set_window_size will return the recieve windows size, but > > not the peer's. It returns the plocal size with an arg of -1 > > and takes no action. Perhaps we should add a -2 to get the remote > > size.... > > I'd suggest checking the documentation to see what I called it. I > actually did think it through, and generally I think you want to be able > to tell both how big the window is Right Now, and how big the window has > been in recent times. I.e., you want to be able to get an idea of what > the argument to the peer's bpc_set_window_size is, altho that's > naturally harder than just looking at what we know right now. Indeed, being able to determine what one's peer's window size is Right Now would do the trick. An alternative would be to have more flexibility built into send_chunk(), being able to tell it NEVER_FRAGMENT vs AVOID_FRAGMENT vs SEND_IMMEDIATELY (the current behavior and presumably the default). Although I suppose BEEP.c wouldn't much enjoy implementing the latter, as it doesn't want to block waiting for the window to open up wider; perhaps instead it could return a EWOULDFRAGMENT error in that case. ------------------------------------------------------- -- David C. Niemi Adeptech Systems, Inc. -- -- Reston, Virginia, USA http://www.adeptech.com/ -- ------------------------------------------------------- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf