summaryrefslogtreecommitdiffstats
path: root/net/server/http_server.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/server/http_server.h')
-rw-r--r--net/server/http_server.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/server/http_server.h b/net/server/http_server.h
index d9404c4..bc6a290 100644
--- a/net/server/http_server.h
+++ b/net/server/http_server.h
@@ -16,6 +16,7 @@ namespace net {
class HttpConnection;
class HttpServerRequestInfo;
+class IPEndPoint;
class WebSocket;
class HttpServer : public StreamListenSocket::Delegate,
@@ -53,6 +54,9 @@ class HttpServer : public StreamListenSocket::Delegate,
void Send500(int connection_id, const std::string& message);
void Close(int connection_id);
+ // Copies the local address to |address|. Returns a network error code.
+ int GetLocalAddress(IPEndPoint* address);
+
// ListenSocketDelegate
virtual void DidAccept(StreamListenSocket* server,
StreamListenSocket* socket) OVERRIDE;