Page 474 - 2
P. 474

}
                    @Override
                    public void run() {
                            try{
                                    mStreamConnectionNotifier = (StreamConnectionNotifier) Connector.open(CONNE
            CTION_URL_FOR_SPP);
                                    HUD.Log(" 컨넥션이 만들어졌습니다.");
                            }catch(Exception exception){
                                    HUD.Log(" 컨넥션을 만들 수 없습니다. :" + exception.getMessage());
                                    return;
                            }

                            HUD.Log(" 서버시작");
                            HUD.Log(" 클라이언트를 기다리는중");
                            while(true){
                                    try{
                                            mStreamConnection = mStreamConnectionNotifier.acceptAndOpen();
                                    }catch(Exception exception){
                                            HUD.Log(" 컨넥션을 열 수 없습니다. :" + exception.getMessage());
                                    }

                                    Data_Manager mdData_Manager = new Data_Manager(mStreamConnection);
                                    new Thread(mdData_Manager).start();
                            }
                    }
            }
            <Bluetooth_Data>
            package com.example.dbstp.mdp_2;


            import java.io.Serializable;

            public class Bluetooth_Data implements Serializable{


               private static final long serialVersionUID = 1L;

               String W_City;
               String W_Pub;
               String W_Tmp;
               String W_wf;
               String Message;
               String GPS_speed;

               Point_info current_Point;


               Point_info next_Points;

               public Point_info getCurrent_Point() {...}


               public void setCurrent_Point(Point_info current_Point) {...}




                                                         - 474 -
   469   470   471   472   473   474   475   476   477   478   479