Jump to content
Sign in to follow this  
Sonjli

Pipeline with global variable

Recommended Posts

Hello,

I am trying to read from a tcp socket some data and elaborate it in a pipeline.

The pipeline should do something like this:

Stage 1: polling the tcp socket and write the list of bytes in Output

Stage 2: read output and make some calculation with bytes (I need to know when a packet starts and ends)

The problem is that in the second stage I receive a list of simple "numbers" (a list of bytes) not continously. I mean that the bytes arrive in groups, but I need to save them in a global array to make my decisions.

Questions:

1. Is the pipeline the right choice?

2. How can I use a global array inside a Pipeline? (I can't use SetParameter as in ITaskController)

 

Thanks in advance

Eddy

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×