summaryrefslogtreecommitdiffstats
path: root/net/server/http_server.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/server/http_server.cc')
-rw-r--r--net/server/http_server.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/net/server/http_server.cc b/net/server/http_server.cc
index 2e12d17..9582487 100644
--- a/net/server/http_server.cc
+++ b/net/server/http_server.cc
@@ -83,8 +83,7 @@ void HttpServer::Send500(int connection_id, const std::string& message) {
connection->Send500(message);
}
-void HttpServer::Close(int connection_id)
-{
+void HttpServer::Close(int connection_id) {
HttpConnection* connection = FindConnection(connection_id);
if (connection == NULL)
return;
@@ -94,6 +93,10 @@ void HttpServer::Close(int connection_id)
DidClose(connection->socket_);
}
+int HttpServer::GetLocalAddress(IPEndPoint* address) {
+ return server_->GetLocalAddress(address);
+}
+
void HttpServer::DidAccept(StreamListenSocket* server,
StreamListenSocket* socket) {
HttpConnection* connection = new HttpConnection(this, socket);