| OLD | NEW | 
|---|
| 1 // Copyright (c) 2012 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 #ifndef NET_TOOLS_FLIP_SERVER_CONSTANTS_H_ | 5 #ifndef NET_TOOLS_FLIP_SERVER_CONSTANTS_H_ | 
| 6 #define NET_TOOLS_FLIP_SERVER_CONSTANTS_H_ | 6 #define NET_TOOLS_FLIP_SERVER_CONSTANTS_H_ | 
| 7 | 7 | 
| 8 #include "net/spdy/spdy_protocol.h" | 8 #include "net/spdy/spdy_protocol.h" | 
| 9 | 9 | 
| 10 const int kMSS = 1460; | 10 const int kMSS = 1460; | 
| 11 const int kSSLOverhead = 25; | 11 const int kSSLOverhead = 25; | 
| 12 const int kSpdyOverhead = 8; | 12 const int kSpdyOverhead = 8; | 
| 13 const int kInitialDataSendersThreshold = (2 * kMSS) - kSpdyOverhead; | 13 const int kInitialDataSendersThreshold = (2 * kMSS) - kSpdyOverhead; | 
| 14 const int kSSLSegmentSize = (1 * kMSS) - kSSLOverhead; | 14 const int kSSLSegmentSize = (1 * kMSS) - kSSLOverhead; | 
| 15 const int kSpdySegmentSize = kSSLSegmentSize - kSpdyOverhead; | 15 const int kSpdySegmentSize = kSSLSegmentSize - kSpdyOverhead; | 
| 16 | 16 | 
| 17 #define ACCEPTOR_CLIENT_IDENT \ | 17 #define ACCEPTOR_CLIENT_IDENT \ | 
| 18     acceptor_->listen_ip_ << ":" \ | 18   acceptor_->listen_ip_ << ":" << acceptor_->listen_port_ << " " | 
| 19     << acceptor_->listen_port_ << " " |  | 
| 20 | 19 | 
| 21 #define IPV4_PRINTABLE_FORMAT(IP) (((IP)>>0)&0xff), (((IP)>>8)&0xff), \ | 20 #define IPV4_PRINTABLE_FORMAT(IP) (((IP)>>0)&0xff), (((IP)>>8)&0xff), \ | 
| 22                                   (((IP)>>16)&0xff), (((IP)>>24)&0xff) | 21                                   (((IP)>>16)&0xff), (((IP)>>24)&0xff) | 
| 23 | 22 | 
| 24 #define PIDFILE "/var/run/flip-server.pid" | 23 #define PIDFILE "/var/run/flip-server.pid" | 
| 25 | 24 | 
| 26 #endif  // NET_TOOLS_FLIP_SERVER_CONSTANTS_H_ | 25 #endif  // NET_TOOLS_FLIP_SERVER_CONSTANTS_H_ | 
| OLD | NEW | 
|---|