-
August 21st, 2008, 09:52 AM
#7
The SocketToLightStreamer class should not be instantiated directly.
Exactly one object of this class is internally created by the Lightstreamer Remote Adapter Library.
If you get data from outside code, as your GetMessage class seems to be, you should be able to access that object.
Usually, the Data Adapter class starts the feed in "Init" and asks it for data in "Subscribe". There, it can send its own reference to the feed.
This is not your case, as you feed data regardless of the subscription requests
(note that any updates you send while no subscription is active will be lost).
What you could do, for instance, is have your SocketToLightStreamer object assign itself to a static pointer that can be eventually consulted in GetMessage.
Note that the best place to assign the pointer is after setting the listener in "SetListener".
Also note that synchronization issues may need to be considered.
Similar Threads
-
By mode_vigilante in forum Adapter SDKs
Replies: 16
Last Post: January 27th, 2012, 03:58 PM
-
By icaiozzi in forum Adapter SDKs
Replies: 1
Last Post: November 19th, 2010, 11:52 AM
-
By AndyKelly in forum Client SDKs
Replies: 1
Last Post: July 7th, 2010, 10:50 AM
-
By devidasan in forum Adapter SDKs
Replies: 1
Last Post: March 17th, 2009, 11:00 AM
-
By markgoldin in forum General
Replies: 6
Last Post: September 28th, 2007, 01:15 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 02:29 PM.
Bookmarks