Mario Kart 64
Loading...
Searching...
No Matches
packets.c File Reference
#include <libultraship.h>
#include <SDL2/SDL_net.h>
#include "networking.h"
#include "code_800029B0.h"
Include dependency graph for packets.c:

Macros

#define BUFFER_SIZE   1024
 

Functions

void handleJoinPacket (const char *data)
 
void handleLeavePacket (const char *data)
 
void handleMessagePacket (const char *data)
 
void handleMessageNumberPacket (const char *data)
 
void handle_start_game ()
 
void send_data_packet (TCPsocket socket, int type, const uint8_t *payload, size_t payload_size)
 
void send_str_packet (TCPsocket socket, uint8_t type, const char *payload)
 
void send_int_packet (TCPsocket socket, uint8_t type, uint32_t payload, uint16_t size)
 

Macro Definition Documentation

◆ BUFFER_SIZE

#define BUFFER_SIZE   1024

Function Documentation

◆ handle_start_game()

void handle_start_game ( void )
Here is the caller graph for this function:

◆ handleJoinPacket()

void handleJoinPacket ( const char * data)
Here is the caller graph for this function:

◆ handleLeavePacket()

void handleLeavePacket ( const char * data)
Here is the caller graph for this function:

◆ handleMessageNumberPacket()

void handleMessageNumberPacket ( const char * data)

◆ handleMessagePacket()

void handleMessagePacket ( const char * data)
Here is the caller graph for this function:

◆ send_data_packet()

void send_data_packet ( TCPsocket socket,
int type,
const uint8_t * payload,
size_t payload_size )

◆ send_int_packet()

void send_int_packet ( TCPsocket socket,
uint8_t type,
uint32_t payload,
uint16_t size )
Here is the caller graph for this function:

◆ send_str_packet()

void send_str_packet ( TCPsocket socket,
uint8_t type,
const char * payload )
Here is the call graph for this function:
Here is the caller graph for this function: