Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1572)

Side by Side Diff: net/socket/server_socket.cc

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/socket/server_socket.h ('k') | net/socket/socket.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "net/socket/server_socket.h"
6
7 #include "net/base/ip_endpoint.h"
8 #include "net/base/net_errors.h"
9 #include "net/base/net_util.h"
10
11 namespace net {
12
13 ServerSocket::ServerSocket() {
14 }
15
16 ServerSocket::~ServerSocket() {
17 }
18
19 int ServerSocket::ListenWithAddressAndPort(const std::string& address_string,
20 uint16 port,
21 int backlog) {
22 IPAddressNumber address_number;
23 if (!ParseIPLiteralToNumber(address_string, &address_number)) {
24 return ERR_ADDRESS_INVALID;
25 }
26
27 return Listen(IPEndPoint(address_number, port), backlog);
28 }
29
30 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/server_socket.h ('k') | net/socket/socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698