var/list/Ports=list("1001","1002")
ID:273360
Feb 24 2010, 8:08 pm
|
|
There's anyway to make a list with all Ports without doing this
|
Feb 24 2010, 10:23 pm
|
|
You could use a for loop from a minimum port number to a maximum port number, and adding those numbers to the list.
|
In response to HolyDoomKnight
|
|
Of course, if the ports could be that easily defined then there would be no purpose of creating a list of them in the first place.
|
Assuming you mean TCP and UDP ports, any unsigned 16-bit number is a valid port number.
If you're looking for the well-known ports, there's a list on Wikipedia |