<HEAD> <TITLE> query_ip_port - return the ip port of a given player object. </TITLE> </HEAD> <BODY BACKGROUND=http://www.imaginary.com/~beek/gifs/bg.jpg TEXT=#000000 ALINK=#FFFF00 VLINK=#550000 LINK=#000099> <center> <H1> query_ip_port - return the ip port of a given player object. </H1> </center> <p> <b> int query_ip_port(object | void); </b> <p> Returns the local port that the argument object used to connect to the mud. If the argument is void, return the local port that this_player() used to connect to the mud. Calling this on non-interactive objects will return 0. <p> This function requires PACKAGE_CONTRIB to be defined in the options file. <p> See also: <A HREF=query_ip_name.html> query_ip_name </A>, <A HREF=query_host_name.html> query_host_name </A>, <A HREF=resolve.html> resolve </A>, <A HREF=socket_address.html> socket_address </A> <p> <HR> <ADDRESS> <A HREF=http://wagner.princeton.edu/~tim> Tim Hollebeek </A> <p> <A HREF="http://www.imaginary.com/~beek/"> Beek </A>@ZorkMUD, Lima Bean, IdeaExchange, TMI-2, and elsewhere </ADDRESS>