Create a C8::Publisher object if you want to write data to a stream. You need one C8::Publisher object per stream.
The following functions allow you to create C8::Publisher objects and connect to streams.
-
new()
– Creates a new C8::Publisher object.
-
connection($uri)
– Creates a publisher connection to the given $uri that identifies a Sybase CEP Stream. Returns 1 if the connection is ready to receive data. Returns an undefined value if an error occurs.
-
write_tuple($tuple)
– Writes a C8::Tuple object to the stream.
Note: There is no explicit call to close the connection. The connection will be closed when you destroy the C8::Publisher object.