Skip to content

Commit

Permalink
server reply added
Browse files Browse the repository at this point in the history
  • Loading branch information
Khushali Desai committed Apr 24, 2015
1 parent 2930e1c commit ba1b6e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Binary file modified cl
Binary file not shown.
8 changes: 4 additions & 4 deletions client1.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,21 @@ int main(int argc , char *argv[])
while(1)
{
printf("write your hostname : ");
gets(msg);
printf("%s",msg);

if (send(sock,msg, 2000 , 0) < 0)
{
printf("send error");
return 1;
}

msg=NULL;
if(recv(sock , msg , 2000 , 0) < 0)
//msg=NULL;
if(recv(sock , server_reply , 2000 , 0) < 0)
{
printf("recv failed");
break;
}
printf("Reply From Server : %s \n ",msg);
printf("Reply From Server : %s \n ",server_reply);
}


Expand Down

0 comments on commit ba1b6e9

Please sign in to comment.