Skip to content

Commit

Permalink
Multicast test continued.
Browse files Browse the repository at this point in the history
Change-Id: Icd1f098b44df9bcdef7d7b9fb3157b3ccd1d13fd
  • Loading branch information
avesus committed Jul 7, 2014
1 parent ba28bb1 commit d89c7d7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions win/streamsrv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,10 @@ int Receiver()

printf("My port: %d\n", recvOnPort);

printf("Another port:\n");
scanf_s("%15s", anotherPort, 16);
sendToPort = atoi(anotherPort);

/*
sockaddr_in mcAddr = {0};
mcAddr.sin_family = AF_INET;
Expand Down Expand Up @@ -329,13 +333,10 @@ int main()
scanf_s("%63s", multicastSourceIp, 64);
printf("Broadcast to (ex. 239.192.100.2):\n");
scanf_s("%63s", multicastDestIp, 64);

printf("Another IP:\n");
scanf_s("%63s", anotherIp, 64);

printf("Another port:\n");
scanf_s("%15s", anotherPort, 16);
sendToPort = atoi(anotherPort);

Receiver();

calculate();
Expand Down

0 comments on commit d89c7d7

Please sign in to comment.