nbnet icon indicating copy to clipboard operation
nbnet copied to clipboard

single header C(99) library to implement client-server network code for games

Results 8 nbnet issues
Sort by recently updated
recently updated
newest added

Those two examples do not work on windows because of the `Sleep `function conflicting with winapi. Also, the examples need to be compiled with `-lwsock2` so this should be stated...

bug
documentation
enhancement

According to https://en.cppreference.com/w/c/language/identifier ``` The following identifiers are reserved and may not be declared in a program (doing so invokes undefined behavior): [...] 2. All external identifiers that begin with...

enhancement

On all tested platforms except for OSX, there is a segfault when calling NBN_GameClient_Deinit or NBN_GameServer_Deinit. For now, it was only reproduced with the soak test but I believe it's...

bug

[CodeFactor](https://www.codefactor.io/repository/github/nathhb/nbnet/overview/master) found multiple issues: #### Complex Code - [ ] [nbnet.h](https://www.codefactor.io/repository/github/nathhb/nbnet/source/master/nbnet.h) #### 'reject' is defined but never used. - [ ] [net_drivers\webrtc\js\standalone\signaling_server.js:11](https://www.codefactor.io/repository/github/nathhb/nbnet/source/master/net_drivers/webrtc/js/standalone/signaling_server.js#L11) #### '_' is defined but never used. -...

enhancement

In the WebRTC driver, just make the client connect straight to location.hostname instead of whatever IP the client asked for :)

Hello, the second parameter of NBN_GameClient_Start can not be domain name: `int NBN_GameClient_Start(const char *protocol_name, const char *ip_address, uint16_t port, bool encryption, uint8_t *connection_data)` So if I try to use...

enhancement
good first issue

First of all, thanks for this amazing library; I've discovered it a couple of days ago and I've been enjoying it so much, so I wanted to contribute some fixes...