Skip to content

This library is a thin C wrapper around RabbitMQ meant to provide simple functions that can be accessed via a C# DLLImport command in Unity.

Notifications You must be signed in to change notification settings

fuadmefleh/holorabbit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

holorabbit

This library is a thin C wrapper around RabbitMQ meant to provide simple functions that can be accessed via a C# DLLImport command in Unity. This is pretty barebones but has been used extensively for my various projects that require RabbitMQ on the Hololens. It goes without saying that this library requires the C RabbitMQ client library to compile. I usually compile the entire thing statically into this library as it avoids DLL import issues in Unity where you are having to link two DLLs instead of this single wrapper.

Basic Usage

  1. Everything must be built in x86 32bit! Hololens doesn't support 64 bit so don't even try.
  2. Download and build RabbitMQ C Client for static linkage (https://github.com/alanxz/rabbitmq-c)
  3. Link this Visual Studio project to your RabbitMQ C Client STATICALLY, don't use dynamic (DLL) unless you really love debugging weird DLL import issues.
  4. Build this project and get an output DLL.
  5. Import this DLL into the Unity project within a folder named Plugins
  6. Import the C# scripts in the UnitySource folder into your Unity project.
  7. The RabbitClient is the main interface that is used within your project.

Good to knows

  1. Everything needs to be 32 bits!
  2. RabbitClient is multithreaded and has a built in message pump, so only instantiate one of this class.
  3. Please contribute to this as I built this in desperation but got it to work so I figured I would share in the hopes of making it better.

Good luck and reach out for help.

About

This library is a thin C wrapper around RabbitMQ meant to provide simple functions that can be accessed via a C# DLLImport command in Unity.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages