亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? myne64applet.java

?? FREESCALE 9S12NE64 TCP/IP 開發程序包
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* * MyNE64Applet.java * * Created on March 17, 2005, 12:52 PM */package my.NE64.pkg;import java.io.IOException;import java.io.InputStream;import java.io.OutputStream;import java.net.URL;import java.net.*;/** * * @author  rat579 */public class MyNE64Applet extends java.applet.Applet implements Runnable {    private static final long serialVersionUID = 1; //just to get rid of warning    private Thread NE64_App_Thread = null;    final static String Version = "NE64 Application v0.1, (c) 2005 .";    private InputStream NE64_input_strm;    private OutputStream NE64_output_strm;        private int machine_type;    private short machine_name_size;    private String machine_name;    private int machine_serial;    private int machine_reorder_level;    private int machine_Coolness;    private int remote_temp_set;    private short product1_name_size;    private String product1_name;    private float product1_cost;    private short product1_units;    private float product1_drop;    private short product1_net_year;    private short product2_name_size;    private String product2_name;    private float product2_cost;    private short product2_units;    private float product2_drop;    private short product2_net_year;    private short time_size;    private String time;    private float machine_total_drop;    private int machine_sine;    private short SW_ver_size;    private String SW_ver;    private short NotifyAddr_size;    private String NotifyAddr;    private int machine_DST;    private int machine_Alarm;    private short machine_message_size;    private String machine_message;    private short machine_SMTP_URL_size;    private String machine_SMTP_URL;    private short machine_TIME_URL_size;    private String machine_TIME_URL;    private short machine_SMTP_IP_size;    private String machine_SMTP_IP;        // Get applet information    public String getAppletInfo() {        System.out.println( "End getAppletInfo" );        return  Version + "\r\n" +                "Applet Information :\r\n" +                "Name: NE64 Application\r\n" +                "Author: rat579\r\n";    }        // The init() method is called by the AWT when an applet is first loaded or    // reloaded.  Override this method to perform whatever initialization your    // applet needs, such as initializing data structures, loading images or    // fonts, creating frame windows, setting the layout manager, or adding UI    // components.    //--------------------------------------------------------------------------    /** Initializes the applet MyNE64Applet */    public void init() {        try {            System.out.println( "Start initComponents" );            initComponents();        } catch (Exception ex) {            System.out.println( "Error initComponents" );            ex.printStackTrace();        }        System.out.println( "End initComponents" );    }        // THREAD SUPPORT    // The run() method is called when the applet's thread is started. If    // your applet performs any ongoing activities without waiting for user    // input, the code for implementing that behavior typically goes here. For    // example, for an applet that performs animation, the run() method controls    // the display of images.    //--------------------------------------------------------------------------    public void run() {        System.out.println( "Start run" );        int nbytes;        long MSDI_val;        while (NE64_App_Thread != null && NE64_App_Thread.isAlive()) {            //*************************************************            if (NE64_input_strm != null ) {                try {                    byte b[] = new byte[332];  //size of xmit buffer                                        nbytes = NE64_input_strm.read(b,0,332);  // read buffer into b[]                    if (nbytes == 332)       // make sure got all                    {                        updateDisplay(b);                    }                } catch (Exception e) {                    System.out.println("Error reading from socket: "+e);                }            }            //            if (NE64_output_strm != null) {            //                try {            //                    byte a[] = new byte[184];  //size of xmit buffer            //                    NE64_output_strm.write(a,0,184);            //                } catch (Exception e) {            //                    System.out.println("Error writing to socket: "+e);            //                }            //            }        }        System.out.println( "End Run" );    }    //------------------------------------------------------------------    // The start() method is called when the page containing the applet    // first appears on the screen.    //--------------------------------------------------------------------------    public void start() {        String parm;        System.out.println( "Start" );        if (NE64_App_Thread == null) {            NE64_App_Thread = new Thread(this);            NE64_App_Thread.start();            //            NE64_App_Thread.setPriority(5);        }        //----------------------------------------------------------------------        // if there is no connection (shouldn't be) start one.        //----------------------------------------------------------------------        if (NE64_input_strm == null) {            try {                parm = this.getParameter("src");                if (parm == null) {                    parm = "socket:localhost:2001";                    System.out.println( "No Source IP specified" );                    //return;                }                if (parm.startsWith("socket:")) {                    // eg. URL-style spec.: socket://[host:]port                    // host is optional, defaults to the host                    // the applet came from.                    // there must be a port number though.                    //                    NE64_input_strm = openSocketStreamInput(getDocumentBase(), parm.substring(7));                    System.out.println( "openSocketStreamInput Socket ="+ parm.substring(7));                } //else {                //  NE64_input_strm = new URL(getDocumentBase(), parm).openStream();                //  System.out.println( "URL Socket ="+ parm);                //}            } catch (Exception e) {                System.out.println("Error opening Stream : "+e);                return;            }        }    }        // The stop() method is called when the page containing the applet is    // no longer on the screen.    //--------------------------------------------------------------------------    public void stop() {        System.out.println( "Stoping" );        //----------------------------------------------------------------------        //  Close down the connection        //----------------------------------------------------------------------        if (NE64_App_Thread != null) {            //            NE64_App_Thread.stop();            NE64_App_Thread = null;            System.out.println( "NE64_App_Thread = null" );        }        if (NE64_input_strm != null) {            try {                NE64_input_strm.close();                NE64_output_strm.close();                System.out.println( "NE64_input_strm.closed" );            } catch (Exception e) {                System.out.println("Error closing Socket: "+e);            }        }        NE64_input_strm = null;        System.out.println( "Stopped" );    }        private InputStream openSocketStreamInput(URL context, String hostnport)    throws IOException {        int colon = hostnport.lastIndexOf(':');        String host, portstr;        int port;                host = "";        portstr = "";                System.out.println( "openSocketStreamInput" );        if (colon <= 0) {            host = context.getHost();            portstr = (colon == 0) ? hostnport.substring(1) : hostnport;        } else {            try {                host = hostnport.substring(0, colon);                portstr = hostnport.substring(colon+1);            } catch (StringIndexOutOfBoundsException ex) {                throw new IOException("invalid 'src' socket");            }        }                try {            port = Integer.parseInt(portstr);        } catch (Exception ex) {            throw new IOException("port is not a number: "+portstr);        }                return ((new Socket(host,port)).getInputStream());    }        private OutputStream openSocketStreamOutput(URL context, String hostnport)    throws IOException {        int colon = hostnport.lastIndexOf(':');        String host, portstr;        int port;                host = "";        portstr = "";                System.out.println( "openSocketStreamOutput" );        if (colon <= 0) {            host = context.getHost();            portstr = (colon == 0) ? hostnport.substring(1) : hostnport;        } else {            try {                host = hostnport.substring(0, colon);                portstr = hostnport.substring(colon+1);            } catch (StringIndexOutOfBoundsException ex) {                throw new IOException("invalid 'src' socket");            }        }                try {            port = Integer.parseInt(portstr);        } catch (Exception ex) {            throw new IOException("port is not a number: "+portstr);        }                return ((new Socket(host,port+1)).getOutputStream());    }        /**     * Converts a 4 byte array of unsigned bytes to Int     * @param b an array of 4 unsigned bytes     * @return a long representing the unsigned int     */    public static final int unsignedIntToInt(byte[] b,int x) {        int l = 0;        l |= b[x] & 0xFF;        l <<= 8;        l |= b[x+1] & 0xFF;        l <<= 8;        l |= b[x+2] & 0xFF;        l <<= 8;        l |= b[x+3] & 0xFF;        return l;    }    /**     * Converts a 4 byte array of unsigned bytes to float     * @param b an array of 4 unsigned bytes     * @return a long representing the unsigned int     */    public static final float unsignedIntToFloat(byte[] b,int x) {        int l = 0;        l |= b[x] & 0xFF;        l <<= 8;        l |= b[x+1] & 0xFF;        l <<= 8;        l |= b[x+2] & 0xFF;        l <<= 8;        l |= b[x+3] & 0xFF;        return l;    }        /**     * Converts a two byte array to an integer     * @param b a byte array of length 2     * @return an int representing the unsigned short     */    public static final int unsignedShortToInt(byte[] b,int x) {        int i = 0;        i |= b[x] & 0xFF;        i <<= 8;        i |= b[x+1] & 0xFF;        return i;    }    /**     * Converts a one byte array to an integer     * @param b a byte array of length 1     * @return an short representing the unsigned byte     */    public static final short unsignedByteToShort(byte[] b,int x) {        short i = 0;        i |= b[x] & 0xFF;        return i;    }    /**     * Update the JAVA display     */    public final void updateDisplay(byte[] b) {                        machine_type = unsignedShortToInt(b,0);        switch(machine_type) {            case 1000 : jLabel_machine_type.setText("NE64 Demo");break;            case 2000 : jLabel_machine_type.setText("NE64 EVB");break;            default :   jLabel_machine_type.setText(Integer.toString(machine_type));        }                machine_name_size = unsignedByteToShort(b,2);        machine_name = (new  String(b,3,machine_name_size));        jTextField_machine_name.setText((machine_name));                machine_serial = unsignedShortToInt(b,23);        jLabel_machine_serial.setText(Integer.toString(machine_serial));                machine_reorder_level = unsignedShortToInt(b,25);        jTextField_machine_reorder_level.setText(Integer.toString(machine_reorder_level));                machine_Coolness = unsignedShortToInt(b,27);        jProgressBar2.setValue(machine_Coolness);                remote_temp_set = unsignedShortToInt(b,29);                        product1_cost = java.lang.Float.intBitsToFloat(unsignedIntToInt(b,52));        jTextField_product1_cost.setText("$ "+Float.toString(product1_cost));                product1_units = unsignedByteToShort(b,56);        jLabel_product1_units.setText(Integer.toString(product1_units));        if (product1_units ==0){            jRadioButton1_Product1_empty.setSelected(true);            jTextField_product1_name.setText("Out Of Service");        }else{            jRadioButton1_Product1_empty.setSelected(false);            product1_name_size = unsignedByteToShort(b,31);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲综合免费观看高清完整版 | 色综合婷婷久久| 欧美优质美女网站| 精品理论电影在线| 尤物视频一区二区| 国产91综合一区在线观看| 欧美日韩免费观看一区二区三区| 久久一二三国产| 视频一区二区三区在线| 91丝袜美女网| 国产日韩欧美在线一区| 久久精品国产澳门| 在线观看91精品国产麻豆| 中文字幕在线不卡| 粉嫩欧美一区二区三区高清影视| 欧美狂野另类xxxxoooo| 一区二区三区四区在线| 99riav久久精品riav| 国产亚洲欧美日韩日本| 久久99精品视频| 欧美一区二区三区免费观看视频| 亚洲成人自拍偷拍| 91精品福利视频| 亚洲欧美色综合| 北岛玲一区二区三区四区| 国产亚洲精久久久久久| 久久不见久久见免费视频7| 欧美一区二区三区思思人| 亚洲国产wwwccc36天堂| 欧美性受xxxx黑人xyx| 亚洲国产精品一区二区久久恐怖片| 99re热视频这里只精品 | 欧美日韩一区国产| 一区二区免费视频| 欧美专区在线观看一区| 亚洲综合激情小说| 欧美午夜不卡视频| 水蜜桃久久夜色精品一区的特点| 欧美人妇做爰xxxⅹ性高电影| 亚洲国产精品久久一线不卡| 欧美日韩精品二区第二页| 婷婷综合五月天| 91精品国产色综合久久不卡蜜臀| 图片区小说区区亚洲影院| 欧美日韩高清影院| 久久精品国产99国产精品| 久久九九久精品国产免费直播| 国产一区二区美女| 最新欧美精品一区二区三区| 91视频免费看| 婷婷夜色潮精品综合在线| 91精品国产综合久久国产大片| 裸体在线国模精品偷拍| 久久精品亚洲精品国产欧美| av不卡免费电影| 五月天激情综合网| 久久精品人人做人人综合| 97aⅴ精品视频一二三区| 天堂久久一区二区三区| 久久综合色综合88| 日本韩国欧美三级| 免费高清在线一区| 国产精品美女久久久久久久久| 欧美性色欧美a在线播放| 精品一区在线看| 亚洲精品一二三区| 欧美mv日韩mv| 色狠狠av一区二区三区| 美国一区二区三区在线播放| 国产精品第四页| 日韩视频免费直播| 91污片在线观看| 久久精品国产99久久6| 亚洲人吸女人奶水| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 亚洲电影一区二区| 久久久久久一级片| 欧美日韩精品是欧美日韩精品| 国产在线精品免费av| 亚洲午夜激情av| 国产精品女同一区二区三区| 欧美嫩在线观看| 99久久er热在这里只有精品66| 日本欧美加勒比视频| 亚洲精品大片www| 久久精品欧美日韩精品| 91麻豆精品国产91久久久久久| 99国产精品久久| 国产91丝袜在线观看| 强制捆绑调教一区二区| 亚洲在线中文字幕| 国产精品久久久久久久久久久免费看| 欧美一区二区三区视频免费播放| 欧美午夜理伦三级在线观看| 成人国产一区二区三区精品| 久久91精品国产91久久小草| 亚洲愉拍自拍另类高清精品| 国产精品高潮呻吟久久| 精品国产乱码久久久久久1区2区| 欧美精品久久久久久久久老牛影院| 91麻豆swag| av成人动漫在线观看| 丰满少妇久久久久久久| 韩日av一区二区| 蜜桃视频免费观看一区| 三级欧美韩日大片在线看| 亚洲一区二区3| 亚洲国产人成综合网站| 亚洲一区二区三区国产| 亚洲一区二区三区爽爽爽爽爽 | 国产亚洲精品aa午夜观看| 日韩欧美高清dvd碟片| 欧美一区二区成人6969| 91精品国产综合久久香蕉麻豆| 欧美亚一区二区| 欧美日韩国产影片| 制服丝袜一区二区三区| 欧美人伦禁忌dvd放荡欲情| 7777精品伊人久久久大香线蕉最新版| 色妞www精品视频| 在线亚洲免费视频| 欧美视频精品在线观看| 91麻豆精品国产| 日韩欧美激情四射| 久久久美女毛片| 国产精品伦一区| 一区二区三区不卡视频| 亚洲一区二区中文在线| 水蜜桃久久夜色精品一区的特点| 美女免费视频一区| 国产成人精品三级麻豆| 99视频热这里只有精品免费| 一本色道久久综合亚洲aⅴ蜜桃 | 国产一区在线观看视频| 国产成人免费网站| 99视频超级精品| 欧美色视频在线| www激情久久| 中文字幕一区av| 亚洲成a人片在线观看中文| 男人操女人的视频在线观看欧美| 国内成人免费视频| 91污在线观看| 日韩欧美在线影院| 国产精品久久久久久久久动漫| 一区二区三区四区乱视频| 日本v片在线高清不卡在线观看| 极品美女销魂一区二区三区 | 在线观看www91| 日韩一区二区三区四区| 国产日韩亚洲欧美综合| 一区二区三区四区激情 | 五月婷婷综合网| 国产.欧美.日韩| 欧美日韩成人一区| 亚洲国产精品黑人久久久| 亚洲国产毛片aaaaa无费看| 激情伊人五月天久久综合| 91免费版在线| 精品国产乱码久久久久久1区2区| 国产精品日韩精品欧美在线| 日韩福利视频导航| av在线播放成人| 26uuu精品一区二区在线观看| 亚洲精品国产无天堂网2021| 国产精品伊人色| 欧美日本精品一区二区三区| 欧美激情在线一区二区三区| 视频一区二区中文字幕| 91在线码无精品| 久久精品欧美日韩| 奇米精品一区二区三区在线观看| 色94色欧美sute亚洲线路一久 | 自拍偷拍欧美激情| 狠狠色综合色综合网络| 欧美日韩高清在线播放| 亚洲精品五月天| 成av人片一区二区| 久久网站最新地址| 美女高潮久久久| 欧美精品精品一区| 亚洲一二三区视频在线观看| 成人丝袜18视频在线观看| 精品国产精品网麻豆系列| 亚洲a一区二区| 欧美在线制服丝袜| 日韩毛片一二三区| jlzzjlzz国产精品久久| 国产亚洲精品福利| 国产最新精品精品你懂的| 欧美成人乱码一区二区三区| 日日骚欧美日韩| 51精品秘密在线观看| 五月开心婷婷久久| 8x福利精品第一导航| 亚洲国产人成综合网站| 欧美少妇一区二区| 亚洲国产精品久久久久婷婷884 | 国产精品无人区| 成人av影视在线观看|