libnet.h 397 Bytes
#ifndef __LIBNET_H__
#define __LIBNET_H__

int boucleServeur(int socket, void(* fctConnex)(int));
int lanceThread(void(* fonction) (void *), void* arg, int size);
void* reponseConnexion(void* sock);
int initialisationServeur(char* service);
int initializeSocketUDP(char* service);
int sendUDPBroadcast(char* message, int port);
int sendUDPUnicast(char* address, char* message, int port);


#endif