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

Side by Side Diff: net/curvecp/curvecp_server_socket.cc

Issue 10309002: Reimplements net::AddressList without struct addrinfo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: get_canonical_name -> canonical_name. iterator to indexing Created 8 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « net/curvecp/curvecp_client_socket.cc ('k') | net/dns/dns_config_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/base/ip_endpoint.h" 5 #include "net/base/ip_endpoint.h"
6 #include "net/base/net_errors.h" 6 #include "net/base/net_errors.h"
7 #include "net/base/sys_addrinfo.h"
8 #include "net/curvecp/curvecp_server_socket.h" 7 #include "net/curvecp/curvecp_server_socket.h"
9 #include "net/curvecp/messenger.h" 8 #include "net/curvecp/messenger.h"
10 9
11 namespace net { 10 namespace net {
12 11
13 CurveCPServerSocket::CurveCPServerSocket(net::NetLog* net_log, 12 CurveCPServerSocket::CurveCPServerSocket(net::NetLog* net_log,
14 const net::NetLog::Source& source) 13 const net::NetLog::Source& source)
15 : net_log_(BoundNetLog::Make(net_log, NetLog::SOURCE_SOCKET)), 14 : net_log_(BoundNetLog::Make(net_log, NetLog::SOURCE_SOCKET)),
16 packetizer_(new ServerPacketizer()), 15 packetizer_(new ServerPacketizer()),
17 ALLOW_THIS_IN_INITIALIZER_LIST(messenger_(packetizer_.get(), this)), 16 ALLOW_THIS_IN_INITIALIZER_LIST(messenger_(packetizer_.get(), this)),
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 CurveCPServerSocket* new_socket = 72 CurveCPServerSocket* new_socket =
74 new CurveCPServerSocket(key, 73 new CurveCPServerSocket(key,
75 packetizer_, 74 packetizer_,
76 net_log_.net_log(), 75 net_log_.net_log(),
77 NetLog::Source()); 76 NetLog::Source());
78 packetizer_->Open(key, new_socket->messenger()); 77 packetizer_->Open(key, new_socket->messenger());
79 acceptor_->OnAccept(new_socket); 78 acceptor_->OnAccept(new_socket);
80 } 79 }
81 80
82 } // namespace net 81 } // namespace net
OLDNEW
« no previous file with comments | « net/curvecp/curvecp_client_socket.cc ('k') | net/dns/dns_config_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698