start sea server even remotely over ssh
this works on neutron instruments (account equal host) and on linse-c
This commit is contained in:
12
main.cpp
12
main.cpp
@ -15,6 +15,7 @@
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "instr_hosts.h"
|
||||
#include "utils.h"
|
||||
|
||||
QPoint firstPos;
|
||||
|
||||
@ -27,17 +28,6 @@ const char *instr;
|
||||
//char prefinstr[64]="";
|
||||
char frominstr[128];
|
||||
|
||||
char *strtoupper(const char *str) {
|
||||
static char buf[128];
|
||||
int i;
|
||||
for (i = 0; i < 127; i++) {
|
||||
if (str[i] == 0) break;
|
||||
buf[i] = toupper(str[i]);
|
||||
}
|
||||
buf[i] = 0;
|
||||
return buf;
|
||||
}
|
||||
|
||||
const char *fullinstr(const char *host, const char *instr) {
|
||||
static char buf[128];
|
||||
if (strncasecmp(host, instr, strlen(instr)) == 0) {
|
||||
|
Reference in New Issue
Block a user