RetroShare/supportlibs/libsam3
2021-03-16 21:15:31 +01:00
..
examples update libsam3 2021-03-16 21:15:31 +01:00
src update libsam3 2021-03-16 21:15:31 +01:00
test add fork of libsam3 2021-03-16 21:15:26 +01:00
Makefile update libsam3 2021-03-16 21:15:31 +01:00
README.md update libsam3 2021-03-16 21:15:31 +01:00

libsam3

Build Status

A C library for the SAM v3 API.

Development Status

Maintained by idk, PRs are accepted on I2P gitlab/I2P gitlab, and on github at the official mirror repository: i2p/libsam3.

Usage

Copy the two files from one of the following locations into your codebase:

  • src/libsam3 - Synchronous implementation.
  • src/libsam3a - Asynchronous implementation.

See examples/ for how to use various parts of the API.

Cross-Compiling for Windows from debian:

Set your cross-compiler up:

export CC=x86_64-w64-mingw32-gcc
export CFLAGS='-Wall -O2 '
export LDFLAGS='-lmingw32 -lws2_32 -lwsock32 -mwindows'

and run make build. Only libsam3 is available for Windows, libsam3a will be made available at a later date. `

Linker(Windows)

When building for Windows remember to set the flags to link to the Winsock and Windows libraries.

-lmingw32 -lws2_32 -lwsock32 -mwindows

This may apply when cross-compiling or compiling from Windows with mingw.

Cool Projects using libsam3

Are you using libsam3 to provide an a cool I2P based feature to your project? Let us know about it(and how it uses libsam3) and we'll think about adding it here*!

  1. Retroshare

*Projects which are listed here must be actively maintained. Those which intentionally violate the law or the rights of a person or persons directly won't be considered. Neither will obvious trolling. The maintainer will make the final decision.