J2ME中文教程 7 开发无线网络应用程序[40]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

    {

        while (true)

        {

            // If no client to deal, wait until one connects

            if (message == null)

            {

                try

                {

                    wait();

                } catch (InterruptedException e)

                {

                }

            }

            try

            {

                byte[] bytes = message.getBytes();

                Datagram dg = null;

                // Are we a sender thread for the client ? If so then there's

                // no address parameter

                if (address == null)

                {

                    dg = dc.newDatagram(bytes, bytes.length);

本文关键:J2ME中文教程 7 开发无线网络应用程序
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top