Cpp-C/Eta/TestTools/QATools/vaconsumer-TsFrag-001/rsslConsumer.c
void printUsageAndExit(char *appName)
{
	// APIQA: Added bufSize and fillSize
	printf("Usage: %s or\n%s  [-tcp [<hostname>:<port> <service name>]] [<domain>:<item name>,...] ] [-uname <LoginUsername>] [-view] [-post] [-offpost] [-snapshot] [-runtime <seconds>] [-cache] [-cacheInterval <seconds>] [-bufSize <size>] [-fillSize <size>] [-tunnel] [-tsDomain <number> ] [-tsAuth] [-tsServiceName] [-x] [-runtime]\n"
	// END APIQA
			"\n -tcp specifies a connection to open and a list of items to request:\n"
			"\n     hostname:        Hostname of provider to connect to"
			"\n     port:            Port of provider to connect to"
			"\n     service:         Name of service to request items from on this connection"
			"\n     domain:itemName: Domain and name of an item to request."
			"\n         A comma-separated list of these may be specified."
			"\n         The domain may be any of: mp(MarketPrice), mbo(MarketByOrder), mbp(MarketByPrice), yc(YieldCurve), sl(SymbolList)\n"
			"\n         The domain may also be any of the private stream domains: mpps(MarketPrice PS), mbops(MarketByOrder PS), mbpps(MarketByPrice PS), ycps(YieldCurve PS)\n"
			"\n         Example Usage: -tcp localhost:14002 DIRECT_FEED mp:TRI,mp:GOOG,mpps:FB,mbo:MSFT,mbpps:IBM,sl"
			"\n           (for SymbolList requests, a name can be optionally specified)\n"
			"\n -uname changes the username used when logging into the provider.\n"
			"\n -at Specifies the Authentication Token. If this is present, the login user name type will be RDM_LOGIN_USER_AUTHN_TOKEN.\n"
			"\n -ax Specifies the Authentication Extended information. \n"
			"\n -aid Specifies the Application ID.\n"
			"\n -view specifies each request using a basic dynamic view.\n"
			"\n -post specifies that the application should attempt to send post messages on the first requested Market Price item.\n"
			"\n -offpost specifies that the application should attempt to send post messages on the login stream (i.e., off-stream)\n"
			"\n -snapshot specifies each request using non-streaming.\n" 
			"\n -cache will store all open items in cache and periodically dump contents.\n"
			"\n -cacheInterval number of seconds between displaying cache contents; 0 = on exit only (default)\n"
			// APIQA: Added bufSize	and fillSize
			"\n -bufSize size of buffer to use to send a tunnel stream message\n"
			"\n -fillSize amount of bytes to write when sending a tunnel stream message (must be used together with bufSize for proper operation) \n"
			// END APIQA
			"\n -tunnel causes the consumer to open a tunnel stream that exchanges basic messages.\n"
			"\n -tsAuth causes the consumer to enable authentication when opening tunnel streams.\n"
			"\n -tsServiceName specifies the name of the service to use for tunnel streams (if not specified, the service name specified in -c/-tcp is used)\n"
			"\n -x provides an XML trace of messages\n"
			"\n -runtime adjusts the running time of the application.\n"
			, appName, appName);

	/* WINDOWS: wait for user to enter something before exiting  */
#ifdef _WIN32
	printf("\nPress Enter or Return key to exit application:");
	getchar();
#endif
	exit(-1);
}
/* 
 * Prints example usage and exits. 
 */
Prints example usage and exits.
Prints example usage and exits .
void printUsageAndExit(char *appName)
{
	printf("Usage: %s or\n%s  [-tcp [<hostname>:<port> <service name>]] [<domain>:<item name>,...] ] [-uname <LoginUsername>] [-view] [-post] [-offpost] [-snapshot] [-runtime <seconds>] [-cache] [-cacheInterval <seconds>] [-bufSize <size>] [-fillSize <size>] [-tunnel] [-tsDomain <number> ] [-tsAuth] [-tsServiceName] [-x] [-runtime]\n"
			"\n -tcp specifies a connection to open and a list of items to request:\n"
			"\n     hostname:        Hostname of provider to connect to"
			"\n     port:            Port of provider to connect to"
			"\n     service:         Name of service to request items from on this connection"
			"\n     domain:itemName: Domain and name of an item to request."
			"\n         A comma-separated list of these may be specified."
			"\n         The domain may be any of: mp(MarketPrice), mbo(MarketByOrder), mbp(MarketByPrice), yc(YieldCurve), sl(SymbolList)\n"
			"\n         The domain may also be any of the private stream domains: mpps(MarketPrice PS), mbops(MarketByOrder PS), mbpps(MarketByPrice PS), ycps(YieldCurve PS)\n"
			"\n         Example Usage: -tcp localhost:14002 DIRECT_FEED mp:TRI,mp:GOOG,mpps:FB,mbo:MSFT,mbpps:IBM,sl"
			"\n           (for SymbolList requests, a name can be optionally specified)\n"
			"\n -uname changes the username used when logging into the provider.\n"
			"\n -at Specifies the Authentication Token. If this is present, the login user name type will be RDM_LOGIN_USER_AUTHN_TOKEN.\n"
			"\n -ax Specifies the Authentication Extended information. \n"
			"\n -aid Specifies the Application ID.\n"
			"\n -view specifies each request using a basic dynamic view.\n"
			"\n -post specifies that the application should attempt to send post messages on the first requested Market Price item.\n"
			"\n -offpost specifies that the application should attempt to send post messages on the login stream (i.e., off-stream)\n"
			"\n -snapshot specifies each request using non-streaming.\n" 
			"\n -cache will store all open items in cache and periodically dump contents.\n"
			"\n -cacheInterval number of seconds between displaying cache contents; 0 = on exit only (default)\n"
			"\n -bufSize size of buffer to use to send a tunnel stream message\n"
			"\n -fillSize amount of bytes to write when sending a tunnel stream message (must be used together with bufSize for proper operation) \n"
			"\n -tunnel causes the consumer to open a tunnel stream that exchanges basic messages.\n"
			"\n -tsAuth causes the consumer to enable authentication when opening tunnel streams.\n"
			"\n -tsServiceName specifies the name of the service to use for tunnel streams (if not specified, the service name specified in -c/-tcp is used)\n"
			"\n -x provides an XML trace of messages\n"
			"\n -runtime adjusts the running time of the application.\n"
			, appName, appName);
#ifdef _WIN32
	printf("\nPress Enter or Return key to exit application:");
	getchar();
#endif
	exit(-1);
}
void printUsageAndExit ( char * appName ) { printf ( " \n \n " " \n \n " " \n " " \n " " \n " " \n " " \n " " \n \n " " \n \n " " \n " " \n \n " " \n \n " " \n \n " " \n \n " " \n \n " " \n \n " " \n \n " " \n \n " " \n \n " " \n \n " " \n \n " " \n \n " " \n \n " " \n \n " " \n \n " " \n \n " " \n \n " " \n \n " , appName , appName ) ; #ifdef _WIN32 printf ( " \n " ) ; getchar ( ) ; #endif exit ( -1 ) ; }
Prints example usage and exits.
Prints example usage and exits .
// APIQA: Added bufSize and fillSize // END APIQA // APIQA: Added bufSize	and fillSize // END APIQA /* WINDOWS: wait for user to enter something before exiting  */