Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/i2p/libsam3
C SAMv3 library
https://github.com/i2p/libsam3
Last synced: 2 months ago
JSON representation
C SAMv3 library
- Host: GitHub
- URL: https://github.com/i2p/libsam3
- Owner: i2p
- Created: 2016-12-17T04:25:08.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-04-29T23:09:59.000Z (9 months ago)
- Last Synced: 2024-08-04T04:04:44.746Z (6 months ago)
- Language: C
- Homepage: https://geti2p.net/en/docs/api/samv3
- Size: 310 KB
- Stars: 29
- Watchers: 13
- Forks: 22
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-i2p - libsam3 - C SAMv3 library. (Libraries / I2Pd)
README
# libsam3
[![Build Status](https://travis-ci.org/i2p/libsam3.svg?branch=master)](https://travis-ci.org/i2p/libsam3)
A C library for the [SAM v3 API](https://geti2p.net/en/docs/api/samv3).
## Development Status
Maintained by idk, PRs are accepted on [I2P gitlab](https://i2pgit.org/i2p-hackers/libsam3)/[I2P gitlab](http://git.idk.i2p/i2p-hackers/libsam3), and on github at the official mirror repository: [i2p/libsam3](https://github.com/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:
``` sh
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](https://retroshare.cc)
*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.