Android - 什么是实现服务器的常用方法

时间:2015-05-01 08:57:40

标签: android

我想为我的Android应用程序构建一个服务器,需要发送和接收字符串。 在我看来,客户应该看起来像:

        // Try to connect to the Server
        serverConnection = new Socket(serverIP, 4444);
        ObjectInputStream ois = new ObjectInputStream(serverConnection.getInputStream());
        ObjectOutputStream oos = new ObjectOutputStream(serverConnection.getOutputStream());
        ...
        ... // use ois/oos for further communication with the server
        ...
        serverConnection.close();

但令我困扰的是构建服务器的“ REAL WOLD ”做法是什么?那用它来实现它的语言是什么? ,选择这种语言的原因是什么?

0 个答案:

没有答案