msgpack/README

73 lines
1.7 KiB
Plaintext
Raw Normal View History

MessagePack
-----------
Binary-based efficient data interchange format.
*Requirements
MessagePack is only tested on Linux and Mac OS X, but it may run on other
UNIX-like platforms.
Following programs are required to build:
2009-02-22 15:47:06 +09:00
- gcc >= 4.1 with C++ support
- ruby >= 1.8 (ruby is used as a preprocessor)
*Installation
Simply run ./configure && make && make install to install C and C++ binding.
2009-02-26 18:37:13 +09:00
$ ./configure
$ make
$ sudo make install
2009-02-26 18:37:13 +09:00
To install Ruby binding, run ./gengem.sh script on ruby/ directory and install
generated gem package.
2009-02-26 18:37:13 +09:00
$ cd ruby
$ ./gengem.sh
$ gem install gem/pkg/msgpack-*.gem
*Usage
C++:
2009-02-26 18:37:13 +09:00
include msgpack.hpp header and link libmsgpack library.
see example/simple.cc for example.
g++ simple.cc -lmsgpack
g++ stream.cc -lmsgpack -lpthread
C:
2009-02-26 18:37:13 +09:00
include msgpack.h header and link libmsgpackc library.
see example/simple.c for example.
2009-02-26 18:37:13 +09:00
gcc simple.c -lmsgpackc
2009-02-26 18:37:13 +09:00
Ruby:
require msgpack library.
see example/simple.rb for example.
2009-02-26 18:37:13 +09:00
ruby -rubygems simple.rb
2009-02-26 18:37:13 +09:00
API Document is available at http://msgpack.sourceforge.jp/.
2009-02-22 15:14:21 +09:00
Copyright (C) 2008-2009 FURUHASHI Sadayuki
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.