My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
TopicPublisherExample  
Updated Feb 4, 2010 by mike.ret...@gmail.com

Topic Publisher

using Emcaster.Sockets;
using Emcaster.Topics;

PgmSource sendSocket = new PgmSource("224.0.0.23", 7272);
sendSocket.Start();

BatchWriter asyncWriter = new BatchWriter(sendSocket, 1024*128);

TopicPublisher publisher = new TopicPublisher(asyncWriter);
publisher.Start();

int sendTimeout = 1000;
publish.PublishObject("Stock-Quotes-AAPL", 123.3, sendTimeout);
Comment by kelly.el...@gmail.com, Nov 30, 2010

error on that last line. Should be publisher not publish.


Sign in to add a comment
Powered by Google Project Hosting