void runtime_call(){ char a; printf("input connection mode\n"); scanf("%c",&a); for(;a!='q';){ if(a=='1'){ //sync sync_client(); } else if(a=='2'){ //trans } else if(a=='3'){ //http } printf("input connection mode again\n"); scanf("%c",&a); } send(sockad,&a,1,0); }