Skip to content
Extraits de code Groupes Projets
Valider ad411ab1 rédigé par Samuel de Meester de Ravestein's avatar Samuel de Meester de Ravestein
Parcourir les fichiers

better names ?

parent e6f32c8c
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -4,6 +4,7 @@
#include "log.h"
/* Prints `len` bytes starting from `bytes` to stderr */
void dump(const uint8_t *bytes, size_t len) {
for (size_t i = 0; i < len;) {
......
#include "receiver_utils.h"
/**
* @brief The function is going to check if we need to send an ACK or NACK on the @pfd,
* and will send at most one packet [either an ACK or NACK or nothing].
......
......@@ -21,7 +21,7 @@
#include <unistd.h>
#include "log.h"
#include "our_utils.h"
#include "utils.h"
#include "packet_interface.h"
......
......@@ -13,7 +13,7 @@
#include <unistd.h>
#include "log.h"
#include "our_utils.h"
#include "utils.h"
#include "packet_interface.h"
......
#include <arpa/inet.h>
#include <errno.h>
#include <fcntl.h>
#include <netdb.h>
#include <netinet/in.h>
#include <poll.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include "log.h"
#include "our_utils.h"
#include "utils.h"
const char * real_address(const char *address, struct sockaddr_in6 *rval)
{
......
/**
* @file our_utils.h
* @brief This header contains utils that were coded for the packet sending on inginious
* @date 2022-03-17
*/
#ifndef __OUR_UTILS_H_
#define __OUR_UTILS_H_
#ifndef __UTILS_H_
#define __UTILS_H_
#include <arpa/inet.h>
#include <errno.h>
#include <fcntl.h>
#include <netdb.h>
#include <netinet/in.h>
#include <poll.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include "log.h"
typedef struct __attribute__((__packed__))
{
unsigned long long int data_sent;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter