Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Dec 2008
    Location
    Risskov
    Posts
    1

    Pull data from txt file to lighstreamer (NEWBIE)

    Hello!
    My data feed provider has giving me a .txt file that looks like this:
    AUDCZK=AUDCZK|12.882&CZKAUD=CZKAUD|0.0776&CZKAUD=C ZKAUD|0.0776&AUDDKK=AUDDKK|3.6621&DKKAUD=DKKAUD|0. 2731&DKKAUD=DKKAUD|0.2731

    And yeah - I don't know why the to last numbers and symbols are the same. :S
    But how do I make a remote adapter for this? I've tried to look at older threads, but I thinks it's very complex to code, and I simply don't understand the system - I have only experience with PHP.

    Can one of you administrator maybe give me some help?

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,089
    I assume that you can control what your feed provider produces.
    So, you must have asked for AUDCZK, CZKAUD, AUDDKK and DKKAUD in some way
    and you must have asked for CZKAUD and DKKAUD twice in some way.

    Hence, you should find an algorithm to have your PHP adapter:
    • forward 'SUB' and 'USB' messages received from the Server as requests to your feed; the "item names" requested by the clients and carried by the 'SUB' and 'USB' messages have to be known by your feed (one could be 'AUDCZK', for instance)
    • forward the files received from the feed back to the Server, through 'UD3' messages; note that you have to supply names for the fields: if your feed does not supply field names, your PHP adapter should assign proper names, so that the clients can ask for specific fields


    If you don't understand the concepts used in the ARI protocol documentation, you might need to read a more introductory document, as
    DOCS-SDKs\General Concepts.pdf
    The ARI protocol documentation also does not cover the meaning of the message arguments in detail, because a reading of the java interface documentation is assumed. We expect that specific knowledge of java is not a prerequisite for an understanding of the function arguments meaning.

 

 

Similar Threads

  1. Lighstreamer stress testing
    By Andrea in forum Adapter SDKs
    Replies: 3
    Last Post: April 30th, 2012, 05:39 PM
  2. For LightStreamer newbie
    By karthik in forum Client SDKs
    Replies: 2
    Last Post: August 24th, 2010, 08:11 AM
  3. Replies: 0
    Last Post: March 8th, 2010, 11:27 AM
  4. Replies: 5
    Last Post: February 12th, 2008, 04:00 AM
  5. Newbie
    By pisak in forum Client SDKs
    Replies: 1
    Last Post: January 23rd, 2008, 04:10 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 12:54 PM.