net-server/client/func/runtime_call.c
macbook-pro 037cb803cc use ggg
2023-12-21 05:35:00 +08:00

21 lines
300 B
C

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);
}