Searched refs:try_port (Results 1 – 2 of 2) sorted by relevance
60 static uint16_t try_port = 1023; in udp_bind() local64 while ( try_port ) { in udp_bind()65 try_port++; in udp_bind()66 if ( try_port < 1024 ) in udp_bind()68 udp->local.st_port = htons ( try_port ); in udp_bind()
177 static uint16_t try_port = 1023; in tcp_bind() local181 while ( try_port ) { in tcp_bind()182 try_port++; in tcp_bind()183 if ( try_port < 1024 ) in tcp_bind()185 if ( tcp_bind ( tcp, htons ( try_port ) ) == 0 ) in tcp_bind()