#include"testgenhalf.h" #include"util.h" #include #include #include void showUsage(const char* exec) { fprintf(stderr,"Parameters missing\n"); fprintf(stderr,"Usage: %s -- <0 1 ....>\n",exec); fprintf(stderr," %s \n",exec); exit(1); } int main(int argc,char *argv[]) { ProtocolDesc pd; TestGenHalfIO io; int i,me; const char* server; if(argc<3) showUsage(argv[0]); else { server = (strcmp(argv[1],"--")?argv[1]:NULL); me = (server?2:1); io.n = argc-3; io.data = malloc(sizeof(int)*2*io.n); for(i=0;i