Re: I/O streaming with custom data transport



Maciej Sobczak <no.spam@xxxxxxxxxxx> writes:

But what about buffering the input/output. Is this already done
(where?) or is this something I have to take care of?

I would expect the OS to do this in most cases. However .. I have in
mind, for a work problem, using an alternate transport layer for a
message stream where we use GNAT.Sockets at present, and for that I
will have to do the buffering that the new transport requires
myself. The users will be unaware, though there will be an issue when
the stream is closed (the last buffer will have to be padded and
flushed). This sort of thing could be handled in a Close operation on
the new stream type. And of course there will have to be some means of
associating the new stream type with the underlying stream.
.



Relevant Pages

  • Re: Segmentation fault
    ... Here I have made room for 256 characters. ... You see, printfis outputting its string to the stdout stream, ... buffering for its streams: no buffering, line buffering, and full ... not be opened explicitly -- standard input (for reading ...
    (comp.lang.c)
  • Re: I/O buffering
    ... have buffering capabilities, why does Net also have special buffering ... sometimes it's useful to add buffering to a non-buffering Stream class. ... One would not normally use BufferedStream with a FileStream, ... Your own code would have to explicitly dispose your custom Stream class, when you were sure you were done with it. ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: m3u Buffering non-stop
    ... at home I have a local LAN setup that uses DHCP to automatically ... at your home to see what your actual up and down stream rates are. ... every time I try to connect, WMP just keeps Buffering over and over and I ...
    (microsoft.public.windowsmedia.player)
  • Re: Are system calls sometimes costlier than library calls?
    ... I suspect, at least in the case of printf, that this buffering is usually ... printing a newline to a line-buffered stream; ... the host environment" is done with something that has some extra ... some implement "fast" file systems that can lose ...
    (comp.lang.c)
  • RE: m3u Buffering non-stop
    ... Ran the speed test and clocked in at 936 Kbps. ... KLAS stream with no problem. ... In WMP, open Tools -> Options, select the Performance tab. ... every time I try to connect, WMP just keeps Buffering over and over and I ...
    (microsoft.public.windowsmedia.player)