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