File: common.h

package info (click to toggle)
ace 8.0.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 47,064 kB
  • sloc: cpp: 342,819; perl: 31,902; sh: 1,963; python: 532; yacc: 524; xml: 330; lex: 158; lisp: 116; makefile: 85; csh: 20; ansic: 19; tcl: 5
file content (28 lines) | stat: -rw-r--r-- 428 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * ACE reactor demonstration
 *
 * Date: 26-Jan-2006
 */

#ifndef __COMMON_H__
#define __COMMON_H__

#include <ace/Time_Value.h>

/**
 * The port number used by client and server.
 */
static const int PORT = 4711;

/**
 * The base size. 0x100000 = 1 MiB
 */
static const int BASE = 0x100000;

/**
 * The timeout value for connections. (30 seconds)
 */
static const ACE_Time_Value connTimeout(30);

#endif /* __COMMON_H__ */