5 // Sequentially search for valid ports by port number and display
8 int main(int argc
, char* argv
[])
12 for (int port_num
= 0; port_num
< 9999; port_num
++)
14 if (B_OK
== get_port_info(port_num
, &info
) )
16 // Found a valid port - display it's properties.
18 printf("%04u: Team %u - %s\n",
19 (unsigned int)info
.port
,
20 (unsigned int)info
.team
,