Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6607023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:27:30+00:00 2026-05-25T19:27:30+00:00

As far as I can understand streams are of a fixed size, whether they

  • 0

As far as I can understand streams are of a fixed size, whether they are memory or file streams. Is there a term for an open ended stream like a serial port or a network socket connection?

I’m working in Delphi XE. I’ve looked at classes that are decended from TStream. I would like to make an interface to a general class that would apply to a serial port, network socket, keyboard entry or simulated data. These would be data flow of no specifed length, containing packets of usable data.

I’m at a loss for the proper search term. Maybe the right term is a socket, but that seems to be a more specific network term.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:27:31+00:00Added an answer on May 25, 2026 at 7:27 pm

    Stream, pipeline, socket, file, whatever… they are all similar, in the following:

    • They are initialized (opened) then destroyed (closed);
    • You have an handle (instance) over this structure;
    • You use Read and Write methods which may retrieve less content than requested (it allows unsized/infinite/abstract stream).

    In the POSIX/UNIX world, for instance, “everything is a file”, even a network, a setting, a cpu, a device…

    In Delphi, you can perfectly inherits from a TStream to implement this behavior.

    Even the Seek method does not need to handle all the cases. You can have one-way / unidirectional streams, read-only or write-only stream.

    Then you can share the same code with diverse TStream implementations, to/from a file, a network, some memory, the keyboard, a screen, whatever… You can even nest streams, in order to add on-the-fly compression, encryption, replication…

    So if you are in the Delphi world, just call it “stream”, implements a TStream… and happy coding!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So far I can understand HTML.ActionLink and URL.RouteURL but still trying to absorb where
I'm trying to model this constraint in GMPL. As far as I can understand,
I've created an open graph action, and so far I can only seem to
As far as I can tell, there is no API (official or unofficial) to
As far as I can understand, when I new up a Linq to SQL
As far as I can understand, the linq method FirstOrDefault() returns null if a
As far as I can understand from the java.lang.Thread docs, and from other questions
Working on a carousel lightbox tooltip demo and as far I can see in
I'm new to Java, and while reading documentation so far I can't find any
I'm writing a program to generate some wild visuals. So far I can paint

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.