forked from https://github.com/rna88/irrnet which lacked a proper cmake config
Go to file
rna88 540d682cfc SInPacket now tracks decryption/decompression failure.
Previously there was no way to tell if an incoming packet was
incorrectly formatted. The new function SInPacket.isValid()
can be called after decryption/decompression to determine if
the packet wasn't decrypted and/or decompressed properly.

* Added "valid" attribute to SInPacket.
* Decryption routine unsets "valid" if input buffer is not divisible by 16.
* Decompression routine unsets "valid" on receiving zlib error.
2018-03-18 19:00:16 -07:00
enet@236e8a6428 Reorganizing examples. 2018-03-11 05:05:43 -07:00
examples Cleaned up some minor details with examples. Added port specification in server/client creation. 2018-03-14 00:38:54 -07:00
include SInPacket now tracks decryption/decompression failure. 2018-03-15 20:12:33 -07:00
lib Fixed issue with clients not properly ending their connection after being destroyed. Removed git tracking of compiled binaries/library. 2018-03-12 23:53:10 -07:00
source SInPacket now tracks decryption/decompression failure. 2018-03-15 20:12:33 -07:00
zlib@cacf7f1d4e Initial commit. 2018-03-10 20:07:10 -08:00
.gitignore Fixed issue with clients not properly ending their connection after being destroyed. Removed git tracking of compiled binaries/library. 2018-03-12 23:53:10 -07:00
.gitmodules Initial commit. 2018-03-10 20:07:10 -08:00
CHANGELOG.md SInPacket now tracks decryption/decompression failure. 2018-03-18 19:00:16 -07:00
README.md SInPacket now tracks decryption/decompression failure. 2018-03-18 19:00:16 -07:00

README.md

Irrnet

An updated version of the irrNetLite networking library compiled against recent versions of enet and zlib.

Changelog can be viewed here.

Compiling for Linux

When cloning use the --recurse-submodules flag to retrieve the enet and zlib libraries needed by the project:

git clone --recurse-submodules https://github.com/rna88/irrnet.git

Then run make in the source/ directory to build the library, which will be placed in lib/.

Building examples

Navigate to examples/ and run:

./linux_buildAllExamples.sh

or to build them with optimizations:

./linux_buildAllExamples.sh release

The compiled binaries will be found in examples/bin/.

License

Refer to source/ReadMe.txt.