tecs_plot.f is now ext. f77
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#define EOT '\r'
|
||||
|
||||
typedef struct {
|
||||
char host[64];
|
||||
int type; /* = ASYNSRV_TYPE */
|
||||
struct AsynSrv__info asyn_info; /* Contains skt, host, port & chan */
|
||||
struct RS__MsgStruct to_host;
|
||||
@@ -27,6 +28,7 @@ typedef struct {
|
||||
} AsynSrvChan;
|
||||
|
||||
typedef struct {
|
||||
char host[64];
|
||||
int type; /* = TERMSRV_TYPE */
|
||||
char res[SER_BUF_LEN];
|
||||
int fd, tmo;
|
||||
@@ -88,6 +90,7 @@ SerChannel *SerOpen(const char *hostPort, int msecTmo, int (*idleHdl)(int,int))
|
||||
logfileOut(LOG_MAIN, "connection to %s:%d/%d opened (%d sec)\n",
|
||||
aser->asyn_info.host, aser->asyn_info.port, aser->asyn_info.chan,
|
||||
t2-t1);
|
||||
str_copy(aser->host, hostPort);
|
||||
return((SerChannel *)aser);
|
||||
} else {
|
||||
NEW(tser, TermSrvChan); tser->type=TERMSRV_TYPE;
|
||||
@@ -103,6 +106,7 @@ SerChannel *SerOpen(const char *hostPort, int msecTmo, int (*idleHdl)(int,int))
|
||||
time(&t2);
|
||||
ecnt=0;
|
||||
logfileOut(LOG_MAIN, "connected to %s (%d sec)\n", hostPort, t2-t1);
|
||||
str_copy(tser->host, hostPort);
|
||||
return ((SerChannel *)tser);
|
||||
}
|
||||
OnError:
|
||||
@@ -137,7 +141,7 @@ void SerClose(SerChannel *serch) {
|
||||
|
||||
if (serch->type==ASYNSRV_TYPE) {
|
||||
aser=(AsynSrvChan *)serch;
|
||||
AsynSrv_Close(&aser->asyn_info, 0);
|
||||
AsynSrv_Close(&aser->asyn_info, 1);
|
||||
} else if (serch->type==TERMSRV_TYPE) {
|
||||
tser=(TermSrvChan *)serch;
|
||||
close(tser->fd);
|
||||
|
||||
Reference in New Issue
Block a user