blob: 6cc9460ac4154fdc96048f50662f62dfaca9f6a8 [file] [log] [blame]
Zesstra953f9972017-02-18 15:37:36 +01001query_mud_port()
2****************
3
4
MG Mud User88f12472016-06-24 23:31:02 +02005DEPRECATED
Zesstra953f9972017-02-18 15:37:36 +01006==========
7
8
MG Mud User88f12472016-06-24 23:31:02 +02009SYNOPSIS
Zesstra953f9972017-02-18 15:37:36 +010010========
11
12 int query_mud_port(void)
13 int query_mud_port(object user)
14 int query_mud_port(int num)
15
MG Mud User88f12472016-06-24 23:31:02 +020016
17DESCRIPTION
Zesstra953f9972017-02-18 15:37:36 +010018===========
MG Mud User88f12472016-06-24 23:31:02 +020019
Zesstra953f9972017-02-18 15:37:36 +010020 Returns the port number the parser uses for user connections.
MG Mud User88f12472016-06-24 23:31:02 +020021
Zesstra953f9972017-02-18 15:37:36 +010022 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 User88f12472016-06-24 23:31:02 +020034
35SEE ALSO
Zesstra953f9972017-02-18 15:37:36 +010036========
37
38 query_udp_port(E)