Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hello everyone,

 

I have written a Windows application in C# that is monitoring production statistics of a machine via OPC and logging to a SQL database. It has just a single user interface.

 

I would like to provide a way for my manager, for example, to access this application via web browser and serve him a single html page with current production data, for instance.

 

I'm not looking for detailed code -- just a high-level view of how this is accomplished. I just need concepts, at the moment - not specific solutions, necessarily.

 

Thanks for any guidance you can provide.

  • 2 weeks later...
Posted

Since no one else has responded, I'll update my own post with what I have discovered, thus far.

 

The C# application can employ the HTTPListener class to listen on a particular port for a browser's GET request and respond with an HTML page of data.

 

This can be done synchronously (but only allows one request, at a time) or asynchronously using threading.

 

Maybe when I work out the details, I'll post them back.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...