Commit 82be7772 authored by Matteo Quintiliani's avatar Matteo Quintiliani

Redefined parameters for Earthworm


git-svn-id: file:///home/quintiliani/svncopy/nmxptool/trunk@433 3cd66e75-5955-46cb-a940-c26e5fc5497d
parent 0bcfc1c6
#
# Configuration File for nmxptool
#
MyModuleId MOD_NMXPTOOL
RingName WAVE_RING # Transport ring to write data to.
MyModuleId MOD_NMXPTOOL
RingName WAVE_RING # Transport ring to write data to.
HeartBeatInterval 30 # Heartbeat interval, in seconds.
LogFile 1 # 1 -> Keep log, 0 -> no log file
# 2 -> write to module log but not stderr/stdout
Verbosity 1 # Set level of verbosity.
HeartBeatInterval 30 # Heartbeat interval, in seconds.
LogFile 1 # 1 -> Keep log, 0 -> no log file
# 2 -> write to module log but not stderr/stdout
Verbosity 1 # Set level of verbosity.
nmxphost naqs1a.int.ingv.it # Host address of the NaqsServer server
nmxpport 28000 # Port number of the NaqsServer server
NmxpHost naqs1a.int.ingv.it # Host address of the NaqsServer server
NmxpPortPDS 28000 # Port number of the NaqsServer server (Default 28000)
NmxpPortDAP 28002 # Port number of the DataServer server (Default 28002)
#ForceTraceBuf1 0 # On systems that support TRACEBUF2
# messages this flag will force the module
# to create TRACEBUF messages instead.
# Most people will never need this.
#ForceTraceBuf1 0 # On systems that support TRACEBUF2
# messages this flag will force the module
# to create TRACEBUF messages instead.
# Most people will never need this.
MaxTolerableLatency 120
TimeoutRecv 0 # Time-out in seconds for flushing queued data for each channel
# Useful for Data On Demand (i.e. channel HL) (Default 0. No time-out)
DefaultNetworkCode IV
MaxTolerableLatency 120 # Max tolerable latency for each channel (In general not use with TimeoutRecv)
Channel ES.BOB.HH?
Channel MN.TIR.HH?
Channel MDI.HH?
Channel DOI.HH?
Channel SALO.HH?
Channel MONC.HH?
DefaultNetworkCode IV # Default network code where in Channel is not declared
# Channel is like NET.STA.CHAN where NET. is optional
Channel ES.BOB.HH?
Channel MN.TIR.HH?
Channel MDI.HH?
Channel DOI.HH?
Channel SALO.HH?
Channel MONC.HH?
......@@ -393,76 +393,58 @@ int nmxptool_ew_proc_configfile (char * configfile, NMXPTOOL_PARAMS *params) {
logSwitch = k_int();
}
else if ( k_its("Verbosity") ) {
if ( (str = k_str ()) ) {
//m verbose = atoi (str);
}
if ( !str ) {
fprintf(stderr, "Verbosity is unspecified, quiting\n");
return EW_FAILURE;
else if (k_its ("Verbosity")) {
verbose = k_int();
if(verbose != 0) {
params->flag_verbose = 1;
} else {
params->flag_verbose = 0;
}
}
else if (k_its ("nmxphost")) {
else if (k_its ("NmxpHost")) {
if ( (str = k_str ()) ) {
if (strlen(str) >= MAXADDRLEN) {
fprintf(stderr, "nmxphost too long; max is %d characters\n",
MAXADDRLEN);
return EW_FAILURE;
}
//m slhost = strdup(str);
params->hostname = strdup(str);
}
}
else if ( k_its ("nmxpport")) {
//m slport = k_int();
else if ( k_its ("NmxpPortPDS")) {
params->portnumberpds = k_int();
//m if (slport < 1) {
//m fprintf(stderr, "SLport is 0 or junk, quiting.\n");
//m return EW_FAILURE;
//m }
}
else if ( k_its ("NetworkTimeout")) {
if ( (str = k_str ()) ) {
//m slconn->netto = atoi (str);
}
//m if ( !str || slconn->netto < 0 ) {
//m fprintf(stderr, "NetworkTimeout is unspecified or negative, quiting\n");
//m return EW_FAILURE;
//m }
}
else if ( k_its ("NetworkDelay")) {
if ( (str = k_str ()) ) {
//m slconn->netdly = atoi (str);
}
//m if ( !str || slconn->netdly < 0 ) {
//m fprintf(stderr, "NetworkDelay is unspecified or negative, quiting\n");
//m return EW_FAILURE;
//m }
}
else if ( k_its ("KeepAlive")) {
if ( (str = k_str ()) ) {
//m slconn->keepalive = atoi (str);
}
//m if ( !str || slconn->keepalive < 0 ) {
//m fprintf(stderr, "KeepAlive is unspecified or negative, quiting\n");
//m return EW_FAILURE;
//m }
else if ( k_its ("NmxpPortDAP")) {
params->portnumberdap = k_int();
}
else if (k_its ("ForceTraceBuf1")) {
forcetracebuf = k_int();
}
else if (k_its ("TimeoutRecv")) {
params->timeoutrecv = k_int();
}
else if (k_its ("MaxTolerableLatency")) {
params->max_tolerable_latency = k_int();
}
else if (k_its ("DefaultNetworkCode")) {
if ( (str = k_str ()) ) {
if(params->network) {
fprintf(stderr, "DefaultNetworkCode has been replicated!\n");
return EW_FAILURE;
} else {
params->network = strdup(str);
}
}
}
else if (k_its ("Channel")) {
if ( (str = k_str ()) ) {
if(!params->channels) {
......@@ -476,16 +458,6 @@ int nmxptool_ew_proc_configfile (char * configfile, NMXPTOOL_PARAMS *params) {
}
}
else if (k_its ("NetworkCode")) {
if ( (str = k_str ()) ) {
if(params->network) {
fprintf(stderr, "NetworkCode has been replicated!\n");
return EW_FAILURE;
} else {
params->network = strdup(str);
}
}
}
/* Unknown command */
else {
......@@ -508,10 +480,6 @@ int nmxptool_ew_proc_configfile (char * configfile, NMXPTOOL_PARAMS *params) {
} /** while nfiles **/
/* Configure uni-station mode if no streams were specified */
//m if ( slconn->streams == NULL )
//m sl_setuniparams (slconn, selectors, -1, 0);
/* Check for required parameters */
if ( myModName[0] == '\0' ) {
fprintf (stderr, "%s: No MyModId parameter found in %s\n", PACKAGE_NAME,
......@@ -533,20 +501,6 @@ int nmxptool_ew_proc_configfile (char * configfile, NMXPTOOL_PARAMS *params) {
configfile);
return EW_FAILURE;
}
//m if ( !slhost ) {
//m fprintf (stderr, "%s: No SLhost parameter found in %s\n", PACKAGE_NAME,
//m configfile);
//m return EW_FAILURE;
//m }
//m if ( !slport ) {
//m fprintf (stderr, "%s: No SLport parameter found in %s\n", PACKAGE_NAME,
//m configfile);
//m return EW_FAILURE;
//m }
/* Configure the SeedLink connection description thing */
//m snprintf (sladdr, sizeof(sladdr), "%s:%d", slhost, slport);
//m slconn->sladdr = strdup(sladdr);
return EW_SUCCESS;
} /* End of nmxptool_ew_proc_configfile() */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment