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

Side by Side Diff: net/base/net_util.h

Issue 6577: Porting of listen_socket, telnet_server to linux (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 years, 1 month 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_BASE_NET_UTIL_H__ 5 #ifndef NET_BASE_NET_UTIL_H__
6 #define NET_BASE_NET_UTIL_H__ 6 #define NET_BASE_NET_UTIL_H__
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #include <string> 10 #include <string>
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 // Checks the given port against a list of ports which are restricted by 125 // Checks the given port against a list of ports which are restricted by
126 // default. Returns true if the port is allowed, false if it is restricted. 126 // default. Returns true if the port is allowed, false if it is restricted.
127 bool IsPortAllowedByDefault(int port); 127 bool IsPortAllowedByDefault(int port);
128 128
129 // Checks the given port against a list of ports which are restricted by the 129 // Checks the given port against a list of ports which are restricted by the
130 // FTP protocol. Returns true if the port is allowed, false if it is 130 // FTP protocol. Returns true if the port is allowed, false if it is
131 // restricted. 131 // restricted.
132 bool IsPortAllowedByFtp(int port); 132 bool IsPortAllowedByFtp(int port);
133 133
134 // Set socket to non-blocking mode
135 int SetNonBlocking(int fd);
136
134 } // namespace net 137 } // namespace net
135 138
136 #endif // NET_BASE_NET_UTIL_H__ 139 #endif // NET_BASE_NET_UTIL_H__
137 140
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698