Snippets tagged streams

  • tcpStream abstraction

    Basic (but experimental) TCP stream wrappers to help make TCP more abstracted and cleaner. Giving the user just the impression of a 'stream' that one connects to and sends and receives. This helps promote composition. The first abstraction is 'stream', really just wrapping .NET stream functions so that read returns the read n bytes and write returns the stream, all functions take NetworkStream as the first parameters, followed by other parameters. Currently we don't care about timeouts, exceptions, or other nasty's.

    5 people like this

    Posted: 4 years ago by David Klein

  • Lazy fixed-point and Infinite Streams

    Examples of Infinite Streams defined using a lazy fixed-point combinator.

    4 people like this

    Posted: 1 years ago by Nick Palladinos