xcode demo project update

This commit is contained in:
Joseph Henry
2016-07-18 14:18:46 -07:00
parent 2552e87af8
commit 642f5d69fc
4 changed files with 28 additions and 15 deletions

View File

@@ -34,13 +34,12 @@ int main(int argc , char *argv[])
}
printf("connected\n");
char *msg = "welcome to the machine!";
while(1) {
printf("enter message : ");
scanf("%s" , message);
// TX
if(send(sock, msg, sizeof(msg), 0) < 0) {
if(send(sock, message, strlen(message), 0) < 0) {
printf("send failed");
return 1;
}