83bb28637922f0393eeae6b63f0f3009146b0a1d
7 int main(int argc
, char** argv
)
11 int fromhost_fd
= -1, tohost_fd
= -1;
13 for(int c
; (c
= getopt(argc
,argv
,"dpf:t:")) != -1; )
21 nprocs
= atoi(optarg
);
24 fromhost_fd
= atoi(optarg
);
27 tohost_fd
= atoi(optarg
);
32 demand(fcntl(fromhost_fd
,F_GETFD
) >= 0, "fromhost file not open");
33 demand(fcntl(tohost_fd
,F_GETFD
) >= 0, "tohost file not open");
35 appserver_link_t
applink(tohost_fd
,fromhost_fd
);
37 sim_t
s(nprocs
,MEMSIZE
,&applink
);