Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Feature Forums
  3. - Uncategorised posts -
  4. Data push implementation

Data push implementation

Scheduled Pinned Locked Moved - Uncategorised posts -
sysadmincsharpxmlhelp
11 Posts 6 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JMU Duuuukes
    wrote on last edited by
    #1

    Long time reader, first time poster here! I'm looking for a suggestion for a solution here that I have either over-thought or I'm not asking the right questions, so much I need a fresh perspective. I wrote a vb.net application. One feature of the program is that it can wait for and parse XML data in order to present certain notifications to the user. I set this up using a FileSystemWatcher on a local directory to keep an eye out for incoming XML files. These XML files (<1K, maybe 1-2 dozen elements) are generated by another vb.net app that watches for text files on a network share. My problem is that I need a simple and effective way to get this data fed to the client over the web. Using the setup I have now, I will have several dozen laptops on different networks and it will be too complicated to get them all on a VPN to watch the same network share waiting to parse text files. I would rather implement a solution that sits on a web server, and the web server pushes data to a client on any network. Like I said, this probably exists and I'm over-analyzing my problem. I'm willing to write it or modify my main vb.net app if it's possible to watch for incoming data from http. It could be a file push, it could be a data stream, feed, whatever. Any input on a simple practical implementation?

    S M J J L 5 Replies Last reply
    0
    • J JMU Duuuukes

      Long time reader, first time poster here! I'm looking for a suggestion for a solution here that I have either over-thought or I'm not asking the right questions, so much I need a fresh perspective. I wrote a vb.net application. One feature of the program is that it can wait for and parse XML data in order to present certain notifications to the user. I set this up using a FileSystemWatcher on a local directory to keep an eye out for incoming XML files. These XML files (<1K, maybe 1-2 dozen elements) are generated by another vb.net app that watches for text files on a network share. My problem is that I need a simple and effective way to get this data fed to the client over the web. Using the setup I have now, I will have several dozen laptops on different networks and it will be too complicated to get them all on a VPN to watch the same network share waiting to parse text files. I would rather implement a solution that sits on a web server, and the web server pushes data to a client on any network. Like I said, this probably exists and I'm over-analyzing my problem. I'm willing to write it or modify my main vb.net app if it's possible to watch for incoming data from http. It could be a file push, it could be a data stream, feed, whatever. Any input on a simple practical implementation?

      S Offline
      S Offline
      saephoed
      wrote on last edited by
      #2

      Hi I'm no web expert, so don't take the following too serious :) It is not entirely clear for me if you have a specific client in mind or if a browser would do just as fine as parts of the existing vb.net app. It depends on your possibilities to host the server solution. If you have access to port 80 of a public ip address on a machine which can run the vb.net app, then i think that splitting the existing app in a server and a client part could be the quickest solution and it would preserve the original UI. If there's no easy solution for push notification then maybe polling could already be sufficient, depending on the available server capabilities and the number of targeted clients. I googled for "simple vb.net http server" and found the following results interresting: Embedded .NET HTTP Server[^] http://stackoverflow.com/questions/6883364/simple-net-based-http-server[^] http://www.informit.com/guides/content.aspx?g=dotnet&seqNum=784[^]

      1 Reply Last reply
      0
      • J JMU Duuuukes

        Long time reader, first time poster here! I'm looking for a suggestion for a solution here that I have either over-thought or I'm not asking the right questions, so much I need a fresh perspective. I wrote a vb.net application. One feature of the program is that it can wait for and parse XML data in order to present certain notifications to the user. I set this up using a FileSystemWatcher on a local directory to keep an eye out for incoming XML files. These XML files (<1K, maybe 1-2 dozen elements) are generated by another vb.net app that watches for text files on a network share. My problem is that I need a simple and effective way to get this data fed to the client over the web. Using the setup I have now, I will have several dozen laptops on different networks and it will be too complicated to get them all on a VPN to watch the same network share waiting to parse text files. I would rather implement a solution that sits on a web server, and the web server pushes data to a client on any network. Like I said, this probably exists and I'm over-analyzing my problem. I'm willing to write it or modify my main vb.net app if it's possible to watch for incoming data from http. It could be a file push, it could be a data stream, feed, whatever. Any input on a simple practical implementation?

        M Offline
        M Offline
        Matthew Dennis
        wrote on last edited by
        #3

        take a look at SignalR http://signalr.net/[^]

        1 Reply Last reply
        0
        • J JMU Duuuukes

          Long time reader, first time poster here! I'm looking for a suggestion for a solution here that I have either over-thought or I'm not asking the right questions, so much I need a fresh perspective. I wrote a vb.net application. One feature of the program is that it can wait for and parse XML data in order to present certain notifications to the user. I set this up using a FileSystemWatcher on a local directory to keep an eye out for incoming XML files. These XML files (<1K, maybe 1-2 dozen elements) are generated by another vb.net app that watches for text files on a network share. My problem is that I need a simple and effective way to get this data fed to the client over the web. Using the setup I have now, I will have several dozen laptops on different networks and it will be too complicated to get them all on a VPN to watch the same network share waiting to parse text files. I would rather implement a solution that sits on a web server, and the web server pushes data to a client on any network. Like I said, this probably exists and I'm over-analyzing my problem. I'm willing to write it or modify my main vb.net app if it's possible to watch for incoming data from http. It could be a file push, it could be a data stream, feed, whatever. Any input on a simple practical implementation?

          J Offline
          J Offline
          jschell
          wrote on last edited by
          #4

          JMU Duuuukes wrote:

          and the web server pushes data to a client on any network.

          Why does it have to push the data? Why can't the clients poll for it?

          J 1 Reply Last reply
          0
          • J jschell

            JMU Duuuukes wrote:

            and the web server pushes data to a client on any network.

            Why does it have to push the data? Why can't the clients poll for it?

            J Offline
            J Offline
            JMU Duuuukes
            wrote on last edited by
            #5

            Thanks everyone for the input! The reason I'm trying to stay away from polling is that I need it to be "real-time" notifications. I started with a model polling every few seconds but realized that probably was impractical for many reasons. Soon after I posted this question I began experimenting with DropBox (See I said I just needed to walk away from the problem for a moment); I have a file generated server side that drops into a folder synced by DropBox and then any client connected online would see that file pop up on creation. It's crude but that's basically the model I want and it works well until I have a solution finalized. Heck I may just use DropBox for this but it's probably a violation of their terms of service. These all look like great places to start working.

            1 Reply Last reply
            0
            • J JMU Duuuukes

              Long time reader, first time poster here! I'm looking for a suggestion for a solution here that I have either over-thought or I'm not asking the right questions, so much I need a fresh perspective. I wrote a vb.net application. One feature of the program is that it can wait for and parse XML data in order to present certain notifications to the user. I set this up using a FileSystemWatcher on a local directory to keep an eye out for incoming XML files. These XML files (<1K, maybe 1-2 dozen elements) are generated by another vb.net app that watches for text files on a network share. My problem is that I need a simple and effective way to get this data fed to the client over the web. Using the setup I have now, I will have several dozen laptops on different networks and it will be too complicated to get them all on a VPN to watch the same network share waiting to parse text files. I would rather implement a solution that sits on a web server, and the web server pushes data to a client on any network. Like I said, this probably exists and I'm over-analyzing my problem. I'm willing to write it or modify my main vb.net app if it's possible to watch for incoming data from http. It could be a file push, it could be a data stream, feed, whatever. Any input on a simple practical implementation?

              J Offline
              J Offline
              Joezer BH
              wrote on last edited by
              #6

              How about the common chat-room idea where there is a server and clients. There are tons of examples of various implementations bases on TCP. In your case if I undestand correctly you only need the server to send messages (xml) to the clients. If you need some links, let me know.

              Cheees, Edo

              J 1 Reply Last reply
              0
              • J Joezer BH

                How about the common chat-room idea where there is a server and clients. There are tons of examples of various implementations bases on TCP. In your case if I undestand correctly you only need the server to send messages (xml) to the clients. If you need some links, let me know.

                Cheees, Edo

                J Offline
                J Offline
                JMU Duuuukes
                wrote on last edited by
                #7

                That sounds like it is exactly what I need. If you know of any great links please do share them.

                J 1 Reply Last reply
                0
                • J JMU Duuuukes

                  That sounds like it is exactly what I need. If you know of any great links please do share them.

                  J Offline
                  J Offline
                  Joezer BH
                  wrote on last edited by
                  #8

                  What is the programming language of your choice?

                  Cheees, Edo

                  J 1 Reply Last reply
                  0
                  • J Joezer BH

                    What is the programming language of your choice?

                    Cheees, Edo

                    J Offline
                    J Offline
                    JMU Duuuukes
                    wrote on last edited by
                    #9

                    I'm working in VB.NET. Thanks.

                    J 1 Reply Last reply
                    0
                    • J JMU Duuuukes

                      I'm working in VB.NET. Thanks.

                      J Offline
                      J Offline
                      Joezer BH
                      wrote on last edited by
                      #10

                      This is an example in C#, I believe it's fairly simple VB.NET users to pick up from it. A Chat Application Using Asynchronous TCP Sockets[^]

                      Cheees, Edo

                      1 Reply Last reply
                      0
                      • J JMU Duuuukes

                        Long time reader, first time poster here! I'm looking for a suggestion for a solution here that I have either over-thought or I'm not asking the right questions, so much I need a fresh perspective. I wrote a vb.net application. One feature of the program is that it can wait for and parse XML data in order to present certain notifications to the user. I set this up using a FileSystemWatcher on a local directory to keep an eye out for incoming XML files. These XML files (<1K, maybe 1-2 dozen elements) are generated by another vb.net app that watches for text files on a network share. My problem is that I need a simple and effective way to get this data fed to the client over the web. Using the setup I have now, I will have several dozen laptops on different networks and it will be too complicated to get them all on a VPN to watch the same network share waiting to parse text files. I would rather implement a solution that sits on a web server, and the web server pushes data to a client on any network. Like I said, this probably exists and I'm over-analyzing my problem. I'm willing to write it or modify my main vb.net app if it's possible to watch for incoming data from http. It could be a file push, it could be a data stream, feed, whatever. Any input on a simple practical implementation?

                        L Offline
                        L Offline
                        Lost User
                        wrote on last edited by
                        #11

                        Its quite tricky, but try to post this question at likeplum. I always get good answers there to my computer/programming issues and questions. They have programmers online to help you now. You can get a great answer to your question so fast. https://www.likeplum.com/help/programming?aid=3321

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups