Switch branches/tags
Find file History
Pull request Compare This branch is 2 commits behind 6.2.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
json
Makefile
README.md
add-topics.c
auth-service.c
binary-topics.c
change-principal.c
connect-async.c
connect.c
double-topics.c
fetch.c
get-session-properties.c
int64-topics.c
missing-topic-notification.c
msg-handler.c
msg-listener.c
reconnect.c
recordv2-topics.c
send-msg-to-filter.c
send-msg-to-session.c
send-msg.c
session-properties-listener.c
string-topics.c
subscribe-multiple.c
subscribe.c
subscription-control.c
system-auth-control.c
update-record.c
update-topic.c
update-value.c
value-stream.c

README.md

C Examples for the Diffusion APIs

This directory contains examples showing the use of the C API for Diffusion and Diffusion Cloud.

To use these examples, download the C client library for your operating system from the links below. The C API is available for the following operating systems:

  • 64-bit Linux as a statically or dynamically linked library
  • 32-bit and 64-bit Windows as a statically linked library
  • 64-bit OS X as a statically linked library

Client libraries

You can download the C client libraries from the following locations:

  • Download from our website

  • The client libraries are also available in the clients directory of the Diffusion server installation.

Dependencies

The C client requires the following dependencies:

For Linux or OS X, you can download them through your operating system's package manager. For Windows™, Push Technology provides custom builds of these libraries built with the same compiler and on the same architecture as the C client libraries.

Running the examples

  1. Install the required dependencies on your development system.

  2. Get the C client library zip for your platform and extract it.

  3. Uncomment the variables at the top of the Makefile in the examples directory. Set these variables to the location of the extracted Diffusion C client library:

        DIFFUSION_C_CLIENT_INCDIR	=    <path_to_library>/include
        DIFFUSION_C_CLIENT_LIBDIR	=    <path_to_library>/lib
    
  4. Run the make command in the examples directory.