Giter Club home page Giter Club logo

libskypekit's Introduction

Libskypekit

Libskypekit is thread-safe C library that provides synchronous SkypeKit API for asynchronous C++ SkypeKit SDK.

Description

The goal of Libskypekit is catch all asynchronous callbacks of SkypeKit SDK and push they as events into one queue.

Then regular synchronous application can pull queue, retrieve each event and do own business logic.

Currently implemented events:

  • Account status changed
  • Chat message received

Memory management

For each new event Libskypekit dynamically allocates memory for event structure and for event data and then push event into internal events queue. The queue size is only limited by size of operating system available memory. So after processing certain event you are responsible to free event memory otherwise you will have memory leak. See corresponding API call.

Dependencies

  • SkypeKit SDK 4.x.x

Building

Note. Before build libskypekit you must obtain, unpack and compile SkypeKit SDK first!

$ git clone [email protected]:railsware/libskypekit.git
$ cd libskypekit   
$ DEBUG=1 SKYPEKIT_SDK=path/to/compliled/sdk ./build.sh

DEBUG=1 is optional but gives your opportunity to see what is going in library.

Issues on x86_64

When you have error like:

relocation R_X86_64_32S against `vtable for SEClientSession' can not be used when making a shared object; recompile with -fPIC

Try to recompile SDK with -fPIC :

export CC="gcc -fPIC"
export CXX="g++ -fPIC"
./BuildWithCmake.sh

Installation

To install bin, include, lib files into /usr/local just type:

$ sudo ./install.sh

Probably it's better to create package for your OS and install it via package manager.

API

See skypekit.h

Examples

In examples directory you may find out how you may use libevent.

Build it with:

$ ./build_examples.sh

Run ping_pong example:

$ ./bin/skypekit_ping_pong my.pem 127.0.0.1 8963 my_skypename my_password

Author

  • Andriy Yanko

Contributors

  • Volodymyr Bezobiuk
  • Alexey Vasiliev

License

libskypekit's People

Contributors

ayanko avatar

Stargazers

Bill Moritz avatar

Watchers

James Cloos avatar Bill Moritz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.