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

Side by Side Diff: net/socket/socks5_client_socket.h

Issue 598071: Really connect to the same server in FTP network transaction. (Closed)
Patch Set: updates Created 10 years, 10 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/socket_test_util.cc ('k') | net/socket/socks5_client_socket.cc » ('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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #ifndef NET_SOCKET_SOCKS5_CLIENT_SOCKET_H_ 5 #ifndef NET_SOCKET_SOCKS5_CLIENT_SOCKET_H_
6 #define NET_SOCKET_SOCKS5_CLIENT_SOCKET_H_ 6 #define NET_SOCKET_SOCKS5_CLIENT_SOCKET_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 virtual bool IsConnected() const; 49 virtual bool IsConnected() const;
50 virtual bool IsConnectedAndIdle() const; 50 virtual bool IsConnectedAndIdle() const;
51 51
52 // Socket methods: 52 // Socket methods:
53 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); 53 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback);
54 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); 54 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback);
55 55
56 virtual bool SetReceiveBufferSize(int32 size); 56 virtual bool SetReceiveBufferSize(int32 size);
57 virtual bool SetSendBufferSize(int32 size); 57 virtual bool SetSendBufferSize(int32 size);
58 58
59 virtual int GetPeerName(struct sockaddr* name, socklen_t* namelen); 59 virtual int GetPeerAddress(AddressList* address) const;
60 60
61 private: 61 private:
62 enum State { 62 enum State {
63 STATE_GREET_WRITE, 63 STATE_GREET_WRITE,
64 STATE_GREET_WRITE_COMPLETE, 64 STATE_GREET_WRITE_COMPLETE,
65 STATE_GREET_READ, 65 STATE_GREET_READ,
66 STATE_GREET_READ_COMPLETE, 66 STATE_GREET_READ_COMPLETE,
67 STATE_HANDSHAKE_WRITE, 67 STATE_HANDSHAKE_WRITE,
68 STATE_HANDSHAKE_WRITE_COMPLETE, 68 STATE_HANDSHAKE_WRITE_COMPLETE,
69 STATE_HANDSHAKE_READ, 69 STATE_HANDSHAKE_READ,
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 HostResolver::RequestInfo host_request_info_; 134 HostResolver::RequestInfo host_request_info_;
135 135
136 scoped_refptr<LoadLog> load_log_; 136 scoped_refptr<LoadLog> load_log_;
137 137
138 DISALLOW_COPY_AND_ASSIGN(SOCKS5ClientSocket); 138 DISALLOW_COPY_AND_ASSIGN(SOCKS5ClientSocket);
139 }; 139 };
140 140
141 } // namespace net 141 } // namespace net
142 142
143 #endif // NET_SOCKET_SOCKS5_CLIENT_SOCKET_H_ 143 #endif // NET_SOCKET_SOCKS5_CLIENT_SOCKET_H_
OLDNEW
« no previous file with comments | « net/socket/socket_test_util.cc ('k') | net/socket/socks5_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698