New Posix C / C++ SDKs

2 min readDec 3, 2015

The PubNub SDK is happy to announce our new Posix C SDK. If you need to write straight Posix C code, this is the SDK for you.

Most developers work on platforms with their own higher level languages and compiler tools. iOS developers use Objective-C and Swift in XCode. Android developers use Java and the ADK. Web developers use many variations of JavaScript. Sometimes you just need to get down to the metal, and when that happens you want straight C code.

When would you want straight C? Maybe you need maximum speed on a low-end Linux device like the Raspberry Pi. Maybe you are working on a resource constrained embedded ARM chip with less than a Meg of RAM. Maybe your platform uses portable C++ wrappers like QT. Or maybe you just want complete control over memory allocation. Whatever the reason, PubNub has the SDK for you.

We designed this SDK to give you lots of flexibility in how you use it. The SDK operates as a set of transactions so, one per message. You control memory allocation using the pubnub_alloc() and pubnub_free() function calls. You can also choose to compile with or without SSL/TLS support, and can use one of the two available interfaces - the “sync” interface (easy to use) and “callback” (more flexible).

The Posix C SDK guide will walk you through the steps to install and compile everything. We also have a special versions of the C SDK for Windows C, Windows C++, and Posix C++. The C++ SDKs are wrappers around C SDKs that provide efficient abstractions, making it much easier to use, without much overhead.

Note that these C SDKs are different than what you’d use for an Atmel based Arduino system. For those chips use the PubNub Arduino Library.

Is your favorite language or platform missing a PubNub SDK? Let us know!

More from PubNub

How to Create a Dating App: 7 Steps to Fit Any Design
Insights6 minMar 15, 2023

How to Create a Dating App: 7 Steps to Fit Any Design

There are common underlying technologies for a dating app, and in this post, we’ll talk about the major technologies and designs...

Michael Carroll

Michael Carroll

How to Create a Real-time Public Transportation Schedule App
Build6 minMar 14, 2023

How to Create a Real-time Public Transportation Schedule App

How to use geohashing, JavaScript, Google Maps API, and BART API to build a real-time public transit schedule app.

Michael Carroll

Michael Carroll

How to Create Real-Time Vehicle Location Tracking App
Build2 minMar 9, 2023

How to Create Real-Time Vehicle Location Tracking App

How to track and stream real-time vehicle location on a live-updating map using EON, JavaScript, and the Mapbox API.

Michael Carroll

Michael Carroll

Talk to an expert