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

Side by Side Diff: net/tools/flip_server/flip_in_mem_edsm_server.cc

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years 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/tools/epoll_server/epoll_server.cc ('k') | net/tools/flip_server/flip_test_utils.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) 2011 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 <errno.h> 5 #include <errno.h>
6 #include <signal.h> 6 #include <signal.h>
7 #include <stdio.h> 7 #include <stdio.h>
8 #include <string.h> 8 #include <string.h>
9 #include <sys/file.h> 9 #include <sys/file.h>
10 #include <sys/stat.h> 10 #include <sys/stat.h>
(...skipping 15 matching lines...) Expand all
26 #include "net/tools/flip_server/spdy_interface.h" 26 #include "net/tools/flip_server/spdy_interface.h"
27 #include "net/tools/flip_server/streamer_interface.h" 27 #include "net/tools/flip_server/streamer_interface.h"
28 28
29 // If true, then disables the nagle algorithm); 29 // If true, then disables the nagle algorithm);
30 bool FLAGS_disable_nagle = true; 30 bool FLAGS_disable_nagle = true;
31 31
32 // The number of times that accept() will be called when the 32 // The number of times that accept() will be called when the
33 // alarm goes off when the accept_using_alarm flag is set to true. 33 // alarm goes off when the accept_using_alarm flag is set to true.
34 // If set to 0, accept() will be performed until the accept queue 34 // If set to 0, accept() will be performed until the accept queue
35 // is completely drained and the accept() call returns an error); 35 // is completely drained and the accept() call returns an error);
36 int32 FLAGS_accepts_per_wake = 0; 36 int32_t FLAGS_accepts_per_wake = 0;
37 37
38 // The size of the TCP accept backlog); 38 // The size of the TCP accept backlog);
39 int32 FLAGS_accept_backlog_size = 1024; 39 int32_t FLAGS_accept_backlog_size = 1024;
40 40
41 // If set to false a single socket will be used. If set to true 41 // If set to false a single socket will be used. If set to true
42 // then a new socket will be created for each accept thread. 42 // then a new socket will be created for each accept thread.
43 // Note that this only works with kernels that support 43 // Note that this only works with kernels that support
44 // SO_REUSEPORT); 44 // SO_REUSEPORT);
45 bool FLAGS_reuseport = false; 45 bool FLAGS_reuseport = false;
46 46
47 // Flag to force spdy, even if NPN is not negotiated. 47 // Flag to force spdy, even if NPN is not negotiated.
48 bool FLAGS_force_spdy = false; 48 bool FLAGS_force_spdy = false;
49 49
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 } 401 }
402 break; 402 break;
403 } 403 }
404 usleep(1000 * 10); // 10 ms 404 usleep(1000 * 10); // 10 ms
405 } 405 }
406 406
407 unlink(PIDFILE); 407 unlink(PIDFILE);
408 close(pidfile_fd); 408 close(pidfile_fd);
409 return 0; 409 return 0;
410 } 410 }
OLDNEW
« no previous file with comments | « net/tools/epoll_server/epoll_server.cc ('k') | net/tools/flip_server/flip_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698