Skip to content

evenjessie/solace-samples-c

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started Examples

Solace C API

These tutorials will get you up to speed and sending messages with Solace technology as quickly as possible. There are two ways you can get started:

  • If your company has Solace message routers deployed, contact your middleware team to obtain the host name or IP address of a Solace message router to test against, a username and password to access it, and a VPN in which you can produce and consume messages.
  • If you do not have access to a Solace message router, you will need to go through the “Set up a VMR” tutorial to download and install the software.

Contents

This repository contains code and matching tutorial walk throughs for five different basic Solace messaging patterns. For a nice introduction to the Solace API and associated tutorials, check out the tutorials home page.

Checking out and Building

To check out the project and build it, do the following:

  1. clone this GitHub repository
  2. cd solace-samples-c

Download the Solace C API

The C API library can be downloaded here. The build instructions below assume you have unpacked the tar file into src subdirectory of your GitHub repository.

Build the Samples

Building these examples is simple. The following provides an example using Linux. For ideas on how to build on other platforms you can consult the README of the C API library.

gcc -g -Wall -I ../include -L ../lib -lsolclient HelloWorldPub.c -o HelloWorldPub
gcc -g -Wall -I ../include -L ../lib -lsolclient os.c HelloWorldSub.c -o HelloWorldSub

Running the Samples

To try individual samples, build the project from source and then run samples like the following:

On Linux:

$ LD_LIBRARY_PATH=../lib:$LD_LIBRARY_PATH ./HelloWorldSub <<HOST_ADDRESS>>

See the tutorials for more details.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors

See the list of contributors who participated in this project.

License

This project is licensed under the Apache License, Version 2.0. - See the LICENSE file for details.

Resources

For more information try these resources:

About

Getting Started Samples for the Solace C API.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 100.0%