Browse Source

Change connection info to a csv

Will Munn 5 years ago
parent
commit
398df813e4
1 changed files with 2 additions and 23 deletions
  1. 2 23
      test/p2p/offerer.cpp

+ 2 - 23
test/p2p/offerer.cpp

@@ -76,7 +76,7 @@ int main(int argc, char **argv) {
 			return;
 
 		pc->connectionInfo += description;
-		pc->connectionInfo += "xxxxx";
+		pc->connectionInfo += ",";
 	});
 
 	pc->onLocalCandidate([wpc = make_weak_ptr(pc)](const Candidate &candidate) {
@@ -134,9 +134,7 @@ int main(int argc, char **argv) {
 		        "*****"
 		     << endl
 		     << "* 0: Exit /"
-		     << " 1: Enter remote description /"
-		     << " 2: Enter remote candidate /"
-		     << " 3: Send message *" << endl
+		     << " 1: Send message *" << endl
 		     << "[Command]: ";
 
 		int command = -1;
@@ -149,25 +147,6 @@ int main(int argc, char **argv) {
 			break;
 		}
 		case 1: {
-			// Parse Description
-			cout << "[Description]: ";
-			string sdp, line;
-			while (getline(cin, line) && !line.empty()) {
-				sdp += line;
-				sdp += "\r\n";
-			}
-			pc->setRemoteDescription(sdp);
-			break;
-		}
-		case 2: {
-			// Parse Candidate
-			cout << "[Candidate]: ";
-			string candidate;
-			getline(cin, candidate);
-			pc->addRemoteCandidate(candidate);
-			break;
-		}
-		case 3: {
 			// Send Message
 			if (!dc->isOpen()) {
 				cout << "** Channel is not Open ** ";