Old stuff/ecole_etude_fac_de_pau/licence_3/projet_commun_se/backup21/udptest.c
(Deskargatu)
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <strings.h>
#include <signal.h>
#include <sys/types.h>
#include <errno.h>
#include <string.h>
#include <poll.h>
#include <rpc/xdr.h>
#include "include/tcp.h"
#include "include/global.h"
#include "include/demandes.h"
#include "include/sockets.h"
#include "include/gui.h"
#include "include/html.h"
int main(int argc, char** argv)
{
clearscreen();
int sock = gen_udp(4501,"127.0.0.1");
while(1)
{
printf("Sending ..\n");
write_udp(sock,4500,"127.0.0.1","test",4*sizeof(char));
}
}