blob: de4c1e2bc5e4287cf7098525a5f1280655b4b918 [file] [log] [blame]
Zesstra953f9972017-02-18 15:37:36 +01001
2query_mud_port()
3****************
4
5
MG Mud User88f12472016-06-24 23:31:02 +02006DEPRECATED
Zesstra953f9972017-02-18 15:37:36 +01007==========
8
9
MG Mud User88f12472016-06-24 23:31:02 +020010SYNOPSIS
Zesstra953f9972017-02-18 15:37:36 +010011========
12
13 int query_mud_port(void)
14 int query_mud_port(object user)
15 int query_mud_port(int num)
16
MG Mud User88f12472016-06-24 23:31:02 +020017
18DESCRIPTION
Zesstra953f9972017-02-18 15:37:36 +010019===========
MG Mud User88f12472016-06-24 23:31:02 +020020
Zesstra953f9972017-02-18 15:37:36 +010021 Returns the port number the parser uses for user connections.
MG Mud User88f12472016-06-24 23:31:02 +020022
Zesstra953f9972017-02-18 15:37:36 +010023 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 User88f12472016-06-24 23:31:02 +020035
36SEE ALSO
Zesstra953f9972017-02-18 15:37:36 +010037========
38
39 query_udp_port(E)