+33
-33
lines changedFilter options
+33
-33
lines changed Original file line number Diff line number Diff line change
@@ -449,39 +449,6 @@ std::string TransmissionEventStr(ETransmissionEvent ev)
449
449
return vals[ev];
450
450
}
451
451
452
-
extern const char* const srt_rejectreason_msg [] = {
453
-
"Unknown or erroneous",
454
-
"Error in system calls",
455
-
"Peer rejected connection",
456
-
"Resource allocation failure",
457
-
"Rogue peer or incorrect parameters",
458
-
"Listener's backlog exceeded",
459
-
"Internal Program Error",
460
-
"Socket is being closed",
461
-
"Peer version too old",
462
-
"Rendezvous-mode cookie collision",
463
-
"Incorrect passphrase",
464
-
"Password required or unexpected",
465
-
"MessageAPI/StreamAPI collision",
466
-
"Congestion controller type collision",
467
-
"Packet Filter settings error",
468
-
"Group settings collision",
469
-
"Connection timeout"
470
-
};
471
-
472
-
const char* srt_rejectreason_str(int id)
473
-
{
474
-
if (id >= SRT_REJC_PREDEFINED)
475
-
{
476
-
return "Application-defined rejection reason";
477
-
}
478
-
479
-
static const size_t ra_size = Size(srt_rejectreason_msg);
480
-
if (size_t(id) >= ra_size)
481
-
return srt_rejectreason_msg[0];
482
-
return srt_rejectreason_msg[id];
483
-
}
484
-
485
452
bool SrtParseConfig(string s, SrtConfig& w_config)
486
453
{
487
454
using namespace std;
Original file line number Diff line number Diff line change
@@ -416,4 +416,37 @@ int srt_clock_type()
416
416
return SRT_SYNC_CLOCK;
417
417
}
418
418
419
+
extern const char* const srt_rejectreason_msg [] = {
420
+
"Unknown or erroneous",
421
+
"Error in system calls",
422
+
"Peer rejected connection",
423
+
"Resource allocation failure",
424
+
"Rogue peer or incorrect parameters",
425
+
"Listener's backlog exceeded",
426
+
"Internal Program Error",
427
+
"Socket is being closed",
428
+
"Peer version too old",
429
+
"Rendezvous-mode cookie collision",
430
+
"Incorrect passphrase",
431
+
"Password required or unexpected",
432
+
"MessageAPI/StreamAPI collision",
433
+
"Congestion controller type collision",
434
+
"Packet Filter settings error",
435
+
"Group settings collision",
436
+
"Connection timeout"
437
+
};
438
+
439
+
const char* srt_rejectreason_str(int id)
440
+
{
441
+
if (id >= SRT_REJC_PREDEFINED)
442
+
{
443
+
return "Application-defined rejection reason";
444
+
}
445
+
446
+
static const size_t ra_size = Size(srt_rejectreason_msg);
447
+
if (size_t(id) >= ra_size)
448
+
return srt_rejectreason_msg[0];
449
+
return srt_rejectreason_msg[id];
450
+
}
451
+
419
452
}
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4