1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
if(coorx)
{
coderet=recv(sock_service, x1,80,0);
if(x1[0]=='\r')
{
coorx=false;
coory=true;
}
else
{
//send(sock_service,reponse.c_str(),80,0);
cout<<"Le client envoi x = "<<xfin<<endl;
continue;
}
xfin.append(x1);
cout<<"Le client envoi xfin = "<<xfin<<endl;
}
if(coory)
{
coderet=recv(sock_service, y1,80,0);
if(y1[0]=='\r')
{
coory=false;
}
else
{
//send(sock_service,reponse.c_str(),80,0);
cout<<"Le client envoi y = "<<yfin<<endl;
continue;
}
yfin.append(y1);
cout<<"Le client envoi yfin = "<<yfin<<endl;
} |
Partager