mirror of
https://github.com/yoboujon/tsock.git
synced 2025-06-08 14:00:50 +02:00
Main compilable. Résolution de getMessages() qui ne renvoyait rien dans le cas ou le message demandé n'existais pas.
This commit is contained in:
parent
6dd257b350
commit
a93ceba375
2 changed files with 3 additions and 0 deletions
|
@ -157,6 +157,7 @@ struct listeMessage * getMessages(struct listeBAL b, int idRecepteur)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
struct listeMessage * receiverDoesntExist = initListeMessage();
|
struct listeMessage * receiverDoesntExist = initListeMessage();
|
||||||
|
return receiverDoesntExist;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
#include "../header/tsock.h"
|
#include "../header/tsock.h"
|
||||||
#include "../header/puit.h"
|
#include "../header/puit.h"
|
||||||
#include "../header/source.h"
|
#include "../header/source.h"
|
||||||
|
#include "../header/bal.h"
|
||||||
|
|
||||||
int main (int argc, char **argv)
|
int main (int argc, char **argv)
|
||||||
{
|
{
|
||||||
char usageChar[100]="usage: cmd [-p|-s]|[-u][-u|-r ##|-e ##|-b][-n ##][-l ##] port ipAdress\n";
|
char usageChar[100]="usage: cmd [-p|-s]|[-u][-u|-r ##|-e ##|-b][-n ##][-l ##] port ipAdress\n";
|
||||||
testProtocol();
|
testProtocol();
|
||||||
|
bal();
|
||||||
char *ipAddress;
|
char *ipAddress;
|
||||||
extern char *optarg;
|
extern char *optarg;
|
||||||
extern int optind;
|
extern int optind;
|
||||||
|
|
Loading…
Add table
Reference in a new issue