Insights

New Posix C / C++ SDKs

2 min read Michael Carroll 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

NPP and HIPAA: Notice of Privacy Practices Definition
Healthcare CategoryJan 6, 20235 min read

NPP and HIPAA: Notice of Privacy Practices Definition

A Notice of Privacy Practices (NPP) is one of the requirements of HIPAA and helps patients understand their personal data rights.

Michael Carroll

Michael Carroll

HIPAA Technical Safeguards: How To Protect Sensitive Data
Healthcare CategoryJan 5, 20236 min read

HIPAA Technical Safeguards: How To Protect Sensitive Data

HIPAA covered entities must follow the five technical safeguards to achieve HIPAA compliance and prevent data corruption.

Michael Carroll

Michael Carroll