Zesstra | 953f997 | 2017-02-18 15:37:36 +0100 | [diff] [blame] | 1 | |
| 2 | query_mud_port() |
| 3 | **************** |
| 4 | |
| 5 | |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 6 | DEPRECATED |
Zesstra | 953f997 | 2017-02-18 15:37:36 +0100 | [diff] [blame] | 7 | ========== |
| 8 | |
| 9 | |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 10 | SYNOPSIS |
Zesstra | 953f997 | 2017-02-18 15:37:36 +0100 | [diff] [blame] | 11 | ======== |
| 12 | |
| 13 | int query_mud_port(void) |
| 14 | int query_mud_port(object user) |
| 15 | int query_mud_port(int num) |
| 16 | |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 17 | |
| 18 | DESCRIPTION |
Zesstra | 953f997 | 2017-02-18 15:37:36 +0100 | [diff] [blame] | 19 | =========== |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 20 | |
Zesstra | 953f997 | 2017-02-18 15:37:36 +0100 | [diff] [blame] | 21 | Returns the port number the parser uses for user connections. |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 22 | |
Zesstra | 953f997 | 2017-02-18 15:37:36 +0100 | [diff] [blame] | 23 | If no argument is given, the port for this_player() is |
| 24 | returned. If this_player() is not existing or not interactive, |
| 25 | the first port number open for connections is returned. |
| 26 | |
| 27 | If an user object is given, the port used for its connection |
| 28 | is returned. |
| 29 | If a positive number is given, the <num>th port number the |
| 30 | parser uses for connections is returned (given that there are |
| 31 | that many ports). |
| 32 | If -1 is given, the number of ports open for connections is |
| 33 | returned. |
| 34 | |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 35 | |
| 36 | SEE ALSO |
Zesstra | 953f997 | 2017-02-18 15:37:36 +0100 | [diff] [blame] | 37 | ======== |
| 38 | |
| 39 | query_udp_port(E) |