A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Haivision/srt/commit/9f17bd67ce4c35f98297a3abae1f7f2b039839fb below:

[docs] Fixed wrong weight type in SRT_SOCKGROUPCONFIG. · Haivision/srt@9f17bd6 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+4

-7

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+4

-7

lines changed Original file line number Diff line number Diff line change

@@ -997,10 +997,8 @@ typedef void srt_connect_callback_fn(void* opaq, SRTSOCKET ns, int errorcode, co

997 997 998 998

The following group types are collected in an [`SRT_GROUP_TYPE`](#SRT_GROUP_TYPE) enum:

999 999 1000 -

* `SRT_GTYPE_BROADCAST`: broadcast type, all links are actively used at once

1001 -

* `SRT_GTYPE_BACKUP`: backup type, idle links take over connection on disturbance

1002 -

* `SRT_GTYPE_BALANCING`: balancing type, share bandwidth usage between links

1003 - 1000 +

* `SRT_GTYPE_BROADCAST`: broadcast type, all links are actively used at once;

1001 +

* `SRT_GTYPE_BACKUP`: backup type, idle links take over connection on disturbance.

1004 1002 1005 1003

[:arrow_up:   Back to List of Functions & Structures](#srt-api-functions)

1006 1004

@@ -1017,7 +1015,7 @@ typedef struct SRT_GroupMemberConfig_

1017 1015

SRTSOCKET id;

1018 1016

struct sockaddr_storage srcaddr;

1019 1017

struct sockaddr_storage peeraddr;

1020 -

int weight;

1018 +

uint16_t weight;

1021 1019

SRT_SOCKOPT_CONFIG* config;

1022 1020

int errorcode;

1023 1021

int token;

@@ -1040,7 +1038,6 @@ you can change the value of `weight` and `config` and `token` fields. The

1040 1038 1041 1039

* BROADCAST: not used

1042 1040

* BACKUP: positive value of link priority (the greater, the more preferred)

1043 -

* BALANCING: relative expected load on this link for fixed algorithm

1044 1041 1045 1042

In any case, the allowed value for `weight` is between 0 and 32767.

1046 1043

@@ -1104,7 +1101,7 @@ without turning into `SRT_GST_IDLE`

1104 1101

* `SRT_GST_IDLE`: The connection is established and ready to

1105 1102

take over transmission, but it's not used for transmission at

1106 1103

the moment. This state may last for a short moment in the case of

1107 -

broadcast or balancing groups. In backup groups this state

1104 +

broadcast group. In backup group this state

1108 1105

defines a backup link that is ready to take over when the

1109 1106

currently active (running) link becomes unstable.

1110 1107

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