a simple implementation of the Siena client-side interface
SimpleSiena
that identifies itself using the given URI and that receives notifications at the given port
SimpleSiena
implements the client API of Siena.Example:
SimpleSiena * S; S = new SimpleSiena("senp://milano:1969", 1969); Event e; e["price"]=100; e["stock"]="XYZ"; S->publish(e); Notifiable * N; //... Filter f; f.add_filter("stock", Siena_eq, "ZYX"); S->subscribe(f, N); S->main_loop();This implementation ofSiena
receives notifications using the Siena Event Notification Protocol transmitted on a TCP socket.Notifications can be received and processed by the corresponding interested parties (
Notifiable
s) when theSienaClient
is in itsmain_loop
. Notifications are processed one by one.
SimpleSiena
that identifies itself using the given URI and that receives notifications at the given port
this
client.
void main_loop()
Alphabetic index HTML hierarchy of classes or Java