Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

Streams

Hi

Can anyone help me with understanding streams , learning C# , moving from a web language (php)?

Like what is the logic behind them and why are they used? Any thing in PHP that relates to them?

So far I understand there is FileStream , Normal Stream etc , and stream writer/reader is used to manipulate these streams?

Dont really understand them...
The clue is in the name: a stream of data. 😝

So a stream i.e. flow of information passing through, represents a passage for data. From there you can read, write, transform, whatever.

Your question is a little vague though. If you can give something more specific then maybe I can offer more.
(Jan 28, 2016 04:46 PM)Odus Wrote:  The clue is in the name: a stream of data. 😝

So a stream i.e. flow of information passing through, represents a passage for data. From there you can read, write, transform, whatever.

Your question is a little vague though. If you can give something more specific then maybe I can offer more.

Like, when sending a HTTP Web request , you have to write to the stream to execute the request?

What is the logical background behind that?
(Jan 28, 2016 04:47 PM)Foreach Wrote:  Like, when sending a HTTP Web request , you have to write to the stream to execute the request?

What is the logical background behind that?

A request and a response go hand in hand, you need to complete the request with a response if that makes any sense. Queuing the response (well, closing the stream) tells whatever we're sending to that there is nothing else to follow and it should begin its response.
(Jan 28, 2016 04:56 PM)Snow32 Wrote:  I am not sure but I think he wants to know the process of the http request.

Oh, right.

Step 1) Create a connection to the host/server/whatever
Step 2) Set any headers or flags
Step 3) Write the post data
Step 4) Review response (if any)


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Shell] by ________Apr 25, 2016 01:23 AM 8 169 Apr 25, 2016 01:23 AM
Last Post: ________
[C] by Dickyb0bSueFeb 6, 2015 12:04 AM 7 1,064 Feb 6, 2015 12:04 AM
Last Post: 0x43
[C#] by shinigami_samJan 1, 2015 02:11 PM 2 123 Jan 1, 2015 02:11 PM
Last Post: shinigami_sam