push data from server to client continuously


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: push data from server to client continuously

  1. #1
    Nitya Guest

    push data from server to client continuously


    Hi,
    I want to have a web service which reads data continuosly from an external
    hardware(eg rpm) on a serial port and returns a byte array.
    I want to access this data from a aspx file. The problem is that since it
    is continuous data, i have to call the web service in a loop.. and this creates
    100% cpu load.

    Is there a better way to do it ?. I heard that there is pushlet technology
    in java where the server contiuosly sends data to the client (Javascript)..
    is there an equivalent in .net ?

    In summary is there any way that the server could send data to the client
    continuosly without the client requesting for the data in a loop?

    Thanks for any help.

  2. #2
    neil m Guest

    Re: push data from server to client continuously


    there are a few options

    a) don't push from the server, but pull from the client (using meta refresh
    or remote scripting or RDS)

    b) use an ActiveX control that communicates with the server.

    c) use a Java applet that communicates with the server.

    you definitely don't want to do it in a loop.

    read up on events/callbacks, or if using remote scripting or rds, you can
    use the setTimeout() function in javascript to poll the server periodically.

    "Nitya" <nitya_nayak@yahoo.com> wrote:
    >
    >Hi,
    >I want to have a web service which reads data continuosly from an external
    >hardware(eg rpm) on a serial port and returns a byte array.
    >I want to access this data from a aspx file. The problem is that since it
    >is continuous data, i have to call the web service in a loop.. and this

    creates
    >100% cpu load.
    >
    >Is there a better way to do it ?. I heard that there is pushlet technology
    >in java where the server contiuosly sends data to the client (Javascript)..
    >is there an equivalent in .net ?
    >
    >In summary is there any way that the server could send data to the client
    >continuosly without the client requesting for the data in a loop?
    >
    >Thanks for any help.



  3. #3
    Join Date
    Jul 2006
    Posts
    6
    I think iPush Server is what you need. You don't need to handle socket by yourself.
    It also supports J2ME for MIDP2.0 and Flash, and that means you don't have got to build different distribution platforms for versatile client side platforms.

    iPush Server
    http://www.icetechnology.com/products/ipushv2/

    The Vender's Site
    http://www.icetechnology.com

    There are some iPush-powered demos built with flash:
    http://www.icetechnology.com/scenarios/finance.shtml
    http://www.icetechnology.com/scenarios/sports.shtml
    http://www.icetechnology.com/scenarios/im.shtml

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center