trick/test/SIM_test_varserv/models/varserv/include/VS.hh
Jacqueline Deans 5f6a5de070
Expand SIM_test_varserver (#1459)
* Add tests for alternate ways to open VS port

* Don't connect to varserv when quiet=true in trickops

* Add print to try to help debug hanging trickops test

* Handle multicast connect failures gracefully

* Multicast is disabled by default on mac

* Forgot an important return value

* Take away retries

* Fix issue with restart test

* Revert trickops debugging changes

* Remove debugging accidentally left in [no ci]

* whoops

* Allow retries

* Update trickops.py

* sim test adjustments

* Add docs [no ci]

* wording [no ci]

* Cleanup

* Remove large messages, test that one in unit tests
2023-02-24 14:44:55 -06:00

61 lines
1.2 KiB
C++

/********************************* TRICK HEADER *******************************
PURPOSE: ( Variable server test )
REFERENCES: ( None )
ASSUMPTIONS AND LIMITATIONS: ( None )
PROGRAMMERS: ( (Lindsay Landry) (L3) (9-12-2013) ) ( (Jackie Deans) (CACI) (11-30-2022) )
********************************************************************************/
#include <wchar.h>
#include <string.h>
#include <string>
#include "trick_utils/comm/include/tc.h"
#include "trick_utils/comm/include/tc_proto.h"
#ifndef VS_HH
#define VS_HH
class VSTest {
public:
char a;
unsigned char b;
short c;
unsigned short d;
int e; /* m xy-position */
unsigned int f;
long g;
unsigned long h;
float i;
double j;
long long k;
unsigned long long l;
bool m;
int n[5];
std::string o;
char * p;
wchar_t * q; /**< trick_chkpnt_io(**) */
int large_arr[4000];
int status;
VSTest();
~VSTest();
int init();
int default_vars();
int shutdown();
int success();
int fail();
const char *status_messages[3] = {
"Variable Server Test Success",
"Variable Server Test Failure",
"Client failed to connect"
};
};
#endif