Skip to content

Instantly share code, notes, and snippets.

@Zerolean
Zerolean / ENetFileTest.c
Last active December 8, 2020 05:45
ENet file transmission issue
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include "enet.h"
uint8_t payload[1024 * 1024 * 10];
int main(void) {
enet_initialize();
@Zerolean
Zerolean / ENetFragmentationTest.c
Last active July 23, 2020 05:24
ENet transmission logic issue
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include "enet.h"
uint8_t payloadBelowMTU[64];
uint8_t payloadBeyondMTU[2048];
int32_t serverSmallPacketsSent;
int32_t serverBigPacketsSent;