Cat
Macros | Functions
Server_NI6008.cpp File Reference
#include "Server_NI6008.h"

Go to the source code of this file.

Macros

#define DAQmxErrChk(functionCall)   { if( DAQmxFailed(error=(functionCall)) ) { goto Error; } }
 

Functions

int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ DAQmxErrChk

#define DAQmxErrChk (   functionCall)    { if( DAQmxFailed(error=(functionCall)) ) { goto Error; } }

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 3 of file Server_NI6008.cpp.

3  {
4  int port = 5555;
5  if (argc>2) {
6  fprintf(stderr,"usage: %s port[=5555].\n", argv[1]);
7  exit(0);}
8  if (argc==2) port = atoi(argv[1]);
9  Server_NI6008 server(port);
10 }
char ** argv()
char** command line arguments including executable name as arg[0]; You may not modify them! ...
Definition: System.cpp:134
long argc()
Number of arguments passed to the commandline (==numCmdLineArgs()); just to match argv call...
Definition: System.cpp:105