busybox-1.32.0/networking/httpd.c
static int openServer(void)
{
	unsigned n = bb_strtou(bind_addr_or_port, NULL, 10);
	if (!errno && n && n <= 0xffff)
		n = create_and_bind_stream_or_die(NULL, n);
	else
		n = create_and_bind_stream_or_die(bind_addr_or_port, 80);
	xlisten(n, 9);
	return n;
}
/*
 * Create a listen server socket on the designated port.
 */
Create a listen server socket on the designated port.
Create a listen server socket on the designated port .
static int openServer(void)
{
	unsigned n = bb_strtou(bind_addr_or_port, NULL, 10);
	if (!errno && n && n <= 0xffff)
		n = create_and_bind_stream_or_die(NULL, n);
	else
		n = create_and_bind_stream_or_die(bind_addr_or_port, 80);
	xlisten(n, 9);
	return n;
}
static int openServer ( void ) { unsigned n = bb_strtou ( bind_addr_or_port , NULL , 10 ) ; if ( ! errno && n && n <= 0xffff ) n = create_and_bind_stream_or_die ( NULL , n ) ; else n = create_and_bind_stream_or_die ( bind_addr_or_port , 80 ) ; xlisten ( n , 9 ) ; return n ; }
Create a listen server socket on the designated port.
Create a listen server socket on the designated port .