Insights

New Posix C / C++ SDKs

2 min readPubNub Staff on Dec 3, 2015
Try PubNub Today

Free up to 1MM monthly messages. No credit card required.

Subscribe to our newsletter

By submitting this form, you are agreeing to our Terms and Conditions and Privacy Policy.

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 an...

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

Can Empathy Exist in the Metaverse
News May 16, 20221 min read

Can Empathy Exist in the Metaverse

A roundtable discussion led by PubNub’s COO, Casey Clegg, exploring the topics of what it means to be human in a virtual world.

PubNub Staff

PubNub Staff

How to Advance Telehealth and Virtual Care Technologies
News May 2, 20221 min read

How to Advance Telehealth and Virtual Care Technologies

Dr. Joe Kvedar, Chair of the Board for the American Telemedicine Association, joins our COO, Casey Clegg, to discuss why...

PubNub Staff

PubNub Staff

Another Step Towards Data Security: ISO-27001 Implementation
BuildMay 2, 20221 min read

Another Step Towards Data Security: ISO-27001 Implementation

Today, we are glad to announce that we are currently in the process of implementing ISO-27001 security standards.

PubNub Staff

PubNub Staff