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