mirror of
https://github.com/yoboujon/tsock.git
synced 2025-06-08 14:00:50 +02:00
23 lines
No EOL
727 B
C
23 lines
No EOL
727 B
C
#ifndef HEADER_TSOCK
|
|
#define HEADER_TSOCK
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <unistd.h>
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <sys/un.h>
|
|
#include <netinet/in.h>
|
|
#include <netdb.h>
|
|
#include <errno.h>
|
|
#include <arpa/inet.h>
|
|
|
|
void setNbMessage(int * nb, int source);
|
|
void printInfo(int source, int isTCP, int nbMessage, int taille, int portNumber, char ipAddress[]);
|
|
void initStructSocket(struct sockaddr_in *socketTempStruct, int source, int port, char * ipAddress);
|
|
void getNonOtpArgs(char ** argv, int argc, int * portNumber, char * ipAddress[]);
|
|
void formatText(char * actualMessage, int num, int tailleMessage, char messageChar);
|
|
int exitMax(int var,int tailleMax);
|
|
|
|
#endif |