Lines Matching refs:port
22 std::string FormatWsAddress(const std::string& host, int port,
37 std::string FormatHostPort(const std::string& host, int port) {
48 url << ':' << port;
152 std::string FormatWsAddress(const std::string& host, int port,
155 return FormatAddress(FormatHostPort(host, port), target_id, include_protocol);
223 int port() const { return port_; }
260 FormatWsAddress(host, server_socket->port(), id, true).c_str());
270 const std::string& host, int port,
275 port_(port),
474 return server_sockets_[0]->port();
543 int port;
545 port = reinterpret_cast<const sockaddr_in6*>(&addr)->sin6_port;
547 port = reinterpret_cast<const sockaddr_in*>(&addr)->sin_port;
548 port_ = ntohs(port);