add_integer( "udp-caching", DEFAULT_PTS_DELAY / 1000, CACHING_TEXT,
CACHING_LONGTEXT, true )
change_safe()
+ add_obsolete_integer( "server-port" ) /* since 1.2.0 */
set_capability( "access", 0 )
add_shortcut( "udp", "udpstream", "udp4", "udp6" )
char *psz_name = strdup( p_access->psz_location );
char *psz_parser;
const char *psz_server_addr, *psz_bind_addr = "";
- int i_bind_port, i_server_port = 0;
+ int i_bind_port = 1234, i_server_port = 0;
int fam = AF_UNSPEC;
int fd;
}
}
- i_bind_port = var_InheritInteger( p_access, "server-port" );
-
/* Parse psz_name syntax :
* [serveraddr[:serverport]][@[bindaddr]:[bindport]] */
psz_parser = strchr( psz_name, '@' );
static const char *const ppsz_clock_descriptions[] =
{ N_("Default"), N_("Disable"), N_("Enable") };
-#define SERVER_PORT_TEXT N_("UDP port")
-#define SERVER_PORT_LONGTEXT N_( \
- "This is the default port used for UDP streams. Default is 1234." )
-
#define MTU_TEXT N_("MTU of the network interface")
#define MTU_LONGTEXT N_( \
"This is the maximum application-layer packet size that can be " \
set_section( N_( "Network settings" ), NULL )
- add_integer( "server-port", 1234,
- SERVER_PORT_TEXT, SERVER_PORT_LONGTEXT, false )
add_integer( "mtu", MTU_DEFAULT, MTU_TEXT, MTU_LONGTEXT, true )
add_obsolete_bool( "ipv6" ) /* since 1.2.0 */
add_obsolete_bool( "ipv4" ) /* since 1.2.0 */