2004 by Marc J. Rochkind. All rights reserved. Portions marked "Open Source" may be copied under license.

 

Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

c7/msg_time.c File Reference


Detailed Description

IPC timing comparisons [Sec. 7.15].

Definition in file msg_time.c.

Go to the source code of this file.

Defines

#define NUM_MSGS   500
#define NUM_CLIENTS   4
#define SERVERNAME_LOCAL   "MsgTime"
#define SERVERNAME_INET   "//localhost:30001"
#define MSG_LEN   SMI_MSG_MAX
#define time_traffic(method)

Enumerations

enum  MSGCHK_OP { MSGCHK_SET, MSGCHK_CALC, MSGCHK_CHK }

Functions

bool msg_check (void *mbuf, MSGCHK_OP op)
 time_traffic (fifo) time_traffic(skt) time_traffic(msg) time_traffic(mq) time_traffic(shm) time_traffic(pshm) static void handler(int signum)
int main (int argc, char *argv[])

Variables

int num_msgs = NUM_MSGS
int len_msg = 100
bool want_check = true
bool pcsync = true
bool quiet = false
bool run_server = true
bool run_clients = true
const char * hostarg = NULL


Define Documentation

#define MSG_LEN   SMI_MSG_MAX
 

Definition at line 41 of file msg_time.c.

#define NUM_CLIENTS   4
 

Definition at line 37 of file msg_time.c.

Referenced by main().

#define NUM_MSGS   500
 

Definition at line 36 of file msg_time.c.

#define SERVERNAME_INET   "//localhost:30001"
 

Definition at line 39 of file msg_time.c.

Referenced by main().

#define SERVERNAME_LOCAL   "MsgTime"
 

Definition at line 38 of file msg_time.c.

Referenced by main().

#define time_traffic method   ) 
 

Definition at line 95 of file msg_time.c.


Enumeration Type Documentation

enum MSGCHK_OP
 

Enumeration values:
MSGCHK_SET 
MSGCHK_CALC 
MSGCHK_CHK 

Definition at line 51 of file msg_time.c.


Function Documentation

int main int  argc,
char *  argv[]
 

Definition at line 201 of file msg_time.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_neg1, exit(), hostarg, len_msg, NUM_CLIENTS, num_msgs, pcsync, quiet, run_clients, run_server, sigaction::sa_handler, SERVERNAME_INET, SERVERNAME_LOCAL, sigaction(), smi_client_nowait, system(), and want_check.

bool msg_check void *  mbuf,
MSGCHK_OP  op
[static]
 

Definition at line 53 of file msg_time.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FAIL, errno, getpid(), htonl(), len_msg, MSGCHK_CALC, MSGCHK_CHK, MSGCHK_SET, ntohl(), smi_msg::smi_data, and want_check.

time_traffic fifo   ) 
 

Definition at line 186 of file msg_time.c.

References write().


Variable Documentation

const char* hostarg = NULL [static]
 

Definition at line 49 of file msg_time.c.

Referenced by main().

int len_msg = 100 [static]
 

Definition at line 43 of file msg_time.c.

Referenced by main(), and msg_check().

int num_msgs = NUM_MSGS [static]
 

Definition at line 42 of file msg_time.c.

Referenced by main().

bool pcsync = true [static]
 

Definition at line 45 of file msg_time.c.

Referenced by main().

bool quiet = false [static]
 

Definition at line 46 of file msg_time.c.

Referenced by main().

bool run_clients = true [static]
 

Definition at line 48 of file msg_time.c.

Referenced by main().

bool run_server = true [static]
 

Definition at line 48 of file msg_time.c.

Referenced by main().

bool want_check = true [static]
 

Definition at line 44 of file msg_time.c.

Referenced by main(), and msg_check().


Generated on Fri Apr 23 10:57:09 2004 for AUP2 Example Source by doxygen 1.3.1