1•#include'sys/socket.j' correction:'sys/socket.h'
2•#include'sys/types.j' correction: #include'sys/types.h'
3•#include 'net INET/in.h'correction: #include 'netint/in.h'
4•#include 'stidlib.h'correction: #include 'stdlib.h'
6•int main (dar **argv int argc ) correction: int main(int argc,char**argv)
9• int==soket (AF_INET, SOCK_STRING, 1); corection: int s=soket (AF_INET, SOCK_STREAM, 0);
11• adrb. sinfamily=af_inet; corection: adrb. sin_family=AF_INET;
12•adrb. SinRorte=atoi(argv[1]); corection: adrb. sin_porte=atoi(argv[1]);
13•adrb.sinaddr.s_adr=inaddr_any; corection: adrb.sin_addr.s_adr=INADRR_ANY;
14•if(bind(s,&adrb, sizeof(adrb)>==1) corection: if(bind(s,&adrb, sizeof(adrb)==-1)
16•perror(bind) corection: perror("bind");
•La fermuture de bind corection: }
19•for( ) corection: for( , ,)
21•int L=sizeof (ADRa) corection: int L=sizeof (adra);
22•int ss == accept (s,ADR,L); corection: int ss == accept (s,&adra,&L);
23•if (ss=0) corection: if (ss=-1)
25•Perror (accept ); corection: perror ("accept" );
26•exit(0) corection: exit(-1);
31•if(op==+) res = nbr1+nb2; corection: if(op='+') res = nbr1+nbr2;
32• else if(op==-) res = nbr1-nb2; corection: if(op='-') res = nbr1-nbr2;
33•else if(op==*) res =nbr1*nb2; corection: if(op='*') res = nbr1*nbr2;
34•else if(op==/) res = nbr1/nb2; corection: if(op='/') res = nbr1/nbr2;
11• adrb. sinfamily=af_inet; corection: adrb. sin_family=AF_INET;
12•adrb. SinRorte=atoi(argv[1]); corection: adrb. sin_porte=atoi(argv[1]);
13•adrb.sinaddr.s_adr=inaddr_any; corection: adrb.sin_addr.s_adr=INADRR_ANY;
14•if(bind(s,&adrb, sizeof(adrb)>==1) corection: if(bind(s,&adrb, sizeof(adrb)==-1)
16•perror(bind) corection: perror("bind");
•La fermuture de bind corection: }
19•for( ) corection: for( , ,)
21•int L=sizeof (ADRa) corection: int L=sizeof (adra);
22•int ss == accept (s,ADR,L); corection: int ss == accept (s,&adra,&L);
23•if (ss=0) corection: if (ss=-1)
25•Perror (accept ); corection: perror ("accept" );
26•exit(0) corection: exit(-1);
31•if(op==+) res = nbr1+nb2; corection: if(op='+') res = nbr1+nbr2;
32• else if(op==-) res = nbr1-nb2; corection: if(op='-') res = nbr1-nbr2;
33•else if(op==*) res =nbr1*nb2; corection: if(op='*') res = nbr1*nbr2;
34•else if(op==/) res = nbr1/nb2; corection: if(op='/') res = nbr1/nbr2;