Skip to content

Commit

Permalink
Commit before adding options parsing functionality.
Browse files Browse the repository at this point in the history
  • Loading branch information
rovinbhandari committed Mar 5, 2012
1 parent 645ee6e commit 5e4bf23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client_ftp.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ int main(int argc, char* argv[])
chp->conid = -1;
strcpy(path, argv[1]);
strcpy(chp->buffer, argv[1]);
printpacket(chp, HP);
//printpacket(chp, HP);
data = htonp(chp);
if((x = send(sfd_client, data, size_packet, 0)) != size_packet)
er("send()", x);
Expand All @@ -43,7 +43,7 @@ int main(int argc, char* argv[])
er("recv()", x);
chp = htonp(data);
if(chp->type == INFO)
printpacket(chp, HP);
printf(ID "Server says: %s\n", chp->buffer);
else if(chp->type == DATA)
{
//printpacket(chp, HP);
Expand Down

0 comments on commit 5e4bf23

Please sign in to comment.