SynopsisReturns the TCP/IP port number on which the web server is listening for requests. Prototype#include "webs.h" int websGetPort(); Parameters
DescriptionThe websGetPort procedure returns the TCP/IP port number on which the web server is listening for browser requests. The port is configured when the web server is opened via websOpen or reopened via websOpenListen. Return ValueReturns an integer value > 0 containing the port number. Returns 0 if the port is not opened. Exampleport = websGetPort(); websWrite(wp, "The port number is %d", port); Stability ClassificationStable. See Also |