Lines Matching refs:port
34 int port;
228 struct http_server * http_server_init(struct in_addr *addr, int port,
257 if (port < 0)
258 srv->port = 49152;
260 srv->port = port;
267 sin.sin_port = htons(srv->port);
271 /* search for unused port */
272 if (++srv->port == 65535 || port >= 0)
276 wpa_printf(MSG_DEBUG, "HTTP: Failed to bind server port %d: "
277 "%s", srv->port, strerror(errno));
287 inet_ntoa(*addr), srv->port);
313 return srv->port;