Java??????????
???????????? ???????[ 2015/12/2 10:17:25 ] ??????????????? ???????????
????1.????
????????????????????????????????????÷??????????????????????????á???????????á?
????????????????????????????÷?????????????????????????????????
?????????????????????????????????÷????????????????????????
??????????????????????????????????????????÷???????????????????????????????????????????????????????????????????????
???????????????????????????????????????????????????????????????????
??????ν?????????????CLIENT???÷??????SERVER?е????????SA()?????SERVER??????????????????CLIENT?е????????mycallback()??????CLIENT????????mycallback??????????????????Win32?μ????????????????????????????
????????????CLIENT???????????mycallback??CLIENT??mycallback?????????SERVER????????????????CLIENT???ò?????????SERVER???????CLIENT????mycallback?????????????SERVER?????mycallback????淶?????????????????CLIENT??????SERVER?????????R????SERVER?????????mycallback???????????????????????????R??????????Web SERVERervit ??Cliente???Java??RMI?????????????????????????????????
????2.??????????
?????????????
????Client
????д????γ???????????л???????????????????ó???
????Server
???????client????????????Server?е????????????????????client?е????????Server?е??????
??????C/C++?У???????????????????????????????????????????????JAVA???????????????????????????interface??????????????????
???????????????????????? CLIENT??SERVER???н?????
publicinterfaceMyCallBack{
//??л???????????
voidexecute();
}
??????Server?????
publicclassServer{
/**????????????????????????????*/
publicvoidtestTime(MyCallBackcallBack){
...
callBack.execute();///???л??????
}
}
??????????client?????
???????????????漲???????????????????????????е??????
public class Client implements MyCallBack{
Server server = new Server();
/**??????????????????漲???????????????
* ????????????????????У????????
*/
public void execute(){
System.out.println("????????");
}
/**???????????????????????server?????????н???е???????????*/
public void callServer(){
server.testTime(this);
}
}
public static void main(String[] args) {
Client client = new Client();
client.callServer();
}
?????????????????ó???
??????????綽?????????????????????????????????????????????????綽?????????????????????????????????????????????????????綽??????????????????XX????????????????????????????????????????????????????μ????????????????????“??+???”???????????У??????????????????????????“???”????????????????????????????????????????????????????????????Ч???????????????????У????????????????????淶??
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11