9extern void checkerr(
int Result,
const char *ErrorOut);
This file includes necessary Checks and includes the the nesessary libraries of the library.
void checkerr(int Result, const char *ErrorOut)
Checks if Result is < 0 then printout the ErrorOut and exits with code 0.
int snf_setnonblocking(int _sock)
Sets a socket as non blocking.
char * snf_strlen_to_bytes(const char *Str, int nBytes)
Turns a string's length into a sequence of bytes (Following big-endian)
uint32_t snf_bytes_to_uint32(const char *bytes, int nBytes)
Turns a sequence of bytes into a uint32 (Following big-endian)
char * snf_uint32_to_bytes(uint32_t i, int nBytes)
Turns a uint32 into a sequence of bytes (Following big-endian)