为了正常的体验网站,请在浏览器设置里面开启Javascript功能!

网络编程聊天室

2017-10-15 14页 doc 44KB 26阅读

用户头像

is_014457

暂无简介

举报
网络编程聊天室网络编程聊天室 package web; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.net.Socket; import java.util.Arrays; public class Client1 { public stati...
网络编程聊天室
网络编程聊天室 package web; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.net.Socket; import java.util.Arrays; public class Client1 { public static void main(String[] args) { try { Socket socket = new Socket("niit3010", 8080); System.out.println("connected"); InputStream inputStream = socket.getInputStream(); OutputStream outputStream = socket.getOutputStream(); InputStreamReader isr = new InputStreamReader(inputStream); int read; while((read = isr.read()) != -1) { char c = (char) read; System.out.println(read); System.out.println(c); } // int count; // char[] cbuf = new char[10]; // while ((count = isr.read(cbuf)) != -1) { // System.out.println(count); // for (char c : cbuf) { // System.out.println(c); // } // } // BufferedReader reader = new BufferedReader(isr); // String line = reader.readLine(); // System.out.println(line); System.out.println("end"); } catch (IOException e) { center pin checks and anchoring the inner cylinder. According to While coupling alignment should keep oil out of cavity and locate the rotor axis neck raised are within the prescribed limits, there should be no gaps, Horn, Horn and Horn 0.05mm feeler gauges fit into. Center coupling, condenser water filling and water-filled according to factory requirement. For coupling three supported rotor Center, the mouth under the coupling between the value should be as stipulated in the manufacturer, usually 0.15~0.25mm. In the case of coupling connection, if possible, lifting only one bearing end of the support bearing of the rotor, remove the bearing, fitted with special tiles and special lifting tools, disc rotors, check the journal flutter tile, should generally be less than 0.10MM. When the couplings and rotor comes when there is a conflict, the coupling Centre shall prevail. 6.4.5.2.2 shaft looking for: ... 6.4.5.3. Provisional bolt confirmed the positioning of the rotor size, as well as the coupling between the adjustment shim thickness accuracy, drawings to meet the technical requirements. Plane, cylindrical and clean the coupling bolt holes should be clean and without burrs, scrap iron and grease-free, relative position of the coupling according to the drawing requirements are. Coupling top screws, round distance apart, indicators to monitor movement of the aircraft, its value is allowed to pass the value axis moving, mounted adjustment pads, note pads installation direction guide pin coupling with process end closed. The back wheels slowly tightened, when 2mm or so, with standard white bars where two back wheel bolt hole measurement above and below, confirm two back wheel bolt hole concentricity. Then, the symmetrical horizontal mount two temporary bolts tightened, attention to monitor dial indicator, then install the symmetrical temporary bolts, this time sites slowly moving rotor, in the measured circumference of 8 equal parts back wheel rim rock, each measuring relative changes in value should be less than 0.02mm. 6.4.5.4 coupling reamed and paired bolt reaming die reamer, adjustable reamers, boring mill, in several ways. 6.4.5.4.1 General requirements before reaming or boring, // TODO Auto-generated catch block e.printStackTrace(); } } } package web; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.IOException; import java.net.Socket; import Test.SendMessage; public class Client2 implements IReceiver { public SendMessage sm; @Override public void receive(String line) { System.out.println(line); } public static void main(String[] args) { Client2 client2 = new Client2(); client2.sm=new SendMessage(); try { Socket socket = new Socket("127.0.0.1", 8080); Transfer transfer = new Transfer(socket); transfer.setReceiver(new Client2()); transfer.send("hello"); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } center pin checks and anchoring the inner cylinder. According to While coupling alignment should keep oil out of cavity and locate the rotor axis neck raised are within the prescribed limits, there should be no gaps, Horn, Horn and Horn 0.05mm feeler gauges fit into. Center coupling, condenser water filling and water-filled according to factory requirement. For coupling three supported rotor Center, the mouth under the coupling between the value should be as stipulated in the manufacturer, usually 0.15~0.25mm. In the case of coupling connection, if possible, lifting only one bearing end of the support bearing of the rotor, remove the bearing, fitted with special tiles and special lifting tools, disc rotors, check the journal flutter tile, should generally be less than 0.10MM. When the couplings and rotor comes when there is a conflict, the coupling Centre shall prevail. 6.4.5.2.2 shaft looking for: ... 6.4.5.3. Provisional bolt confirmed the positioning of the rotor size, as well as the coupling between the adjustment shim thickness accuracy, drawings to meet the technical requirements. Plane, cylindrical and clean the coupling bolt holes should be clean and without burrs, scrap iron and grease-free, relative position of the coupling according to the drawing requirements are. Coupling top screws, round distance apart, indicators to monitor movement of the aircraft, its value is allowed to pass the value axis moving, mounted adjustment pads, note pads installation direction guide pin coupling with process end closed. The back wheels slowly tightened, when 2mm or so, with standard white bars where two back wheel bolt hole measurement above and below, confirm two back wheel bolt hole concentricity. Then, the symmetrical horizontal mount two temporary bolts tightened, attention to monitor dial indicator, then install the symmetrical temporary bolts, this time sites slowly moving rotor, in the measured circumference of 8 equal parts back wheel rim rock, each measuring relative changes in value should be less than 0.02mm. 6.4.5.4 coupling reamed and paired bolt reaming die reamer, adjustable reamers, boring mill, in several ways. 6.4.5.4.1 General requirements before reaming or boring, package web; public interface IReceiver { void receive(String line); } package web; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.PrintStream; import java.net.ServerSocket; import java.net.Socket; public class Server1 { public static void main(String[] args) { try { ServerSocket ss = new ServerSocket(8080); Socket socket = ss.accept(); System.out.println("connected"); InputStream inputStream = socket.getInputStream(); OutputStream outputStream = socket.getOutputStream(); PrintStream ps = new PrintStream(outputStream); ps.println("welcome"); ps.flush(); ps.close(); socket.close(); } catch (IOException e) { e.printStackTrace(); } } } package web; import java.io.IOException; center pin checks and anchoring the inner cylinder. According to While coupling alignment should keep oil out of cavity and locate the rotor axis neck raised are within the prescribed limits, there should be no gaps, Horn, Horn and Horn 0.05mm feeler gauges fit into. Center coupling, condenser water filling and water-filled according to factory requirement. For coupling three supported rotor Center, the mouth under the coupling between the value should be as stipulated in the manufacturer, usually 0.15~0.25mm. In the case of coupling connection, if possible, lifting only one bearing end of the support bearing of the rotor, remove the bearing, fitted with special tiles and special lifting tools, disc rotors, check the journal flutter tile, should generally be less than 0.10MM. When the couplings and rotor comes when there is a conflict, the coupling Centre shall prevail. 6.4.5.2.2 shaft looking for: ... 6.4.5.3. Provisional bolt confirmed the positioning of the rotor size, as well as the coupling between the adjustment shim thickness accuracy, drawings to meet the technical requirements. Plane, cylindrical and clean the coupling bolt holes should be clean and without burrs, scrap iron and grease-free, relative position of the coupling according to the drawing requirements are. Coupling top screws, round distance apart, indicators to monitor movement of the aircraft, its value is allowed to pass the value axis moving, mounted adjustment pads, note pads installation direction guide pin coupling with process end closed. The back wheels slowly tightened, when 2mm or so, with standard white bars where two back wheel bolt hole measurement above and below, confirm two back wheel bolt hole concentricity. Then, the symmetrical horizontal mount two temporary bolts tightened, attention to monitor dial indicator, then install the symmetrical temporary bolts, this time sites slowly moving rotor, in the measured circumference of 8 equal parts back wheel rim rock, each measuring relative changes in value should be less than 0.02mm. 6.4.5.4 coupling reamed and paired bolt reaming die reamer, adjustable reamers, boring mill, in several ways. 6.4.5.4.1 General requirements before reaming or boring, import java.net.ServerSocket; import java.net.Socket; public class Server2 implements IReceiver{ public void receive(String line) { System.out.println(line); } public static void main(String[] args) { try { ServerSocket ss = new ServerSocket(8080); Socket socket = ss.accept(); Transfer transfer = new Transfer(socket); transfer.setReceiver(new Server2()); transfer.send("welcome"); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } package web; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.PrintStream; import java.net.Socket; public class Transfer implements Runnable{ private PrintStream printStream; private BufferedReader bufferedReader; private IReceiver receiver; public Transfer(Socket socket) throws IOException { InputStream inputStream = socket.getInputStream(); center pin checks and anchoring the inner cylinder. According to While coupling alignment should keep oil out of cavity and locate the rotor axis neck raised are within the prescribed limits, there should be no gaps, Horn, Horn and Horn 0.05mm feeler gauges fit into. Center coupling, condenser water filling and water-filled according to factory requirement. For coupling three supported rotor Center, the mouth under the coupling between the value should be as stipulated in the manufacturer, usually 0.15~0.25mm. In the case of coupling connection, if possible, lifting only one bearing end of the support bearing of the rotor, remove the bearing, fitted with special tiles and special lifting tools, disc rotors, check the journal flutter tile, should generally be less than 0.10MM. When the couplings and rotor comes when there is a conflict, the coupling Centre shall prevail. 6.4.5.2.2 shaft looking for: ... 6.4.5.3. Provisional bolt confirmed the positioning of the rotor size, as well as the coupling between the adjustment shim thickness accuracy, drawings to meet the technical requirements. Plane, cylindrical and clean the coupling bolt holes should be clean and without burrs, scrap iron and grease-free, relative position of the coupling according to the drawing requirements are. Coupling top screws, round distance apart, indicators to monitor movement of the aircraft, its value is allowed to pass the value axis moving, mounted adjustment pads, note pads installation direction guide pin coupling with process end closed. The back wheels slowly tightened, when 2mm or so, with standard white bars where two back wheel bolt hole measurement above and below, confirm two back wheel bolt hole concentricity. Then, the symmetrical horizontal mount two temporary bolts tightened, attention to monitor dial indicator, then install the symmetrical temporary bolts, this time sites slowly moving rotor, in the measured circumference of 8 equal parts back wheel rim rock, each measuring relative changes in value should be less than 0.02mm. 6.4.5.4 coupling reamed and paired bolt reaming die reamer, adjustable reamers, boring mill, in several ways. 6.4.5.4.1 General requirements before reaming or boring, OutputStream outputStream = socket.getOutputStream(); printStream = new PrintStream(outputStream); InputStreamReader isr = new InputStreamReader(inputStream); bufferedReader = new BufferedReader(isr); new Thread(this, "transfer").start(); } public void send(String line) { printStream.println(line); printStream.flush(); } public void setReceiver(IReceiver receiver) //定义一个方法,示处理接受到的东西,参数类型是借口类型,具体实现过程写在实现类中 { this.receiver = receiver; } @Override public void run() { String line; try { while ((line = bufferedReader.readLine()) != null) { if (receiver != null) { receiver.receive(line); } } } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } center pin checks and anchoring the inner cylinder. According to While coupling alignment should keep oil out of cavity and locate the rotor axis neck raised are within the prescribed limits, there should be no gaps, Horn, Horn and Horn 0.05mm feeler gauges fit into. Center coupling, condenser water filling and water-filled according to factory requirement. For coupling three supported rotor Center, the mouth under the coupling between the value should be as stipulated in the manufacturer, usually 0.15~0.25mm. In the case of coupling connection, if possible, lifting only one bearing end of the support bearing of the rotor, remove the bearing, fitted with special tiles and special lifting tools, disc rotors, check the journal flutter tile, should generally be less than 0.10MM. When the couplings and rotor comes when there is a conflict, the coupling Centre shall prevail. 6.4.5.2.2 shaft looking for: ... 6.4.5.3. Provisional bolt confirmed the positioning of the rotor size, as well as the coupling between the adjustment shim thickness accuracy, drawings to meet the technical requirements. Plane, cylindrical and clean the coupling bolt holes should be clean and without burrs, scrap iron and grease-free, relative position of the coupling according to the drawing requirements are. Coupling top screws, round distance apart, indicators to monitor movement of the aircraft, its value is allowed to pass the value axis moving, mounted adjustment pads, note pads installation direction guide pin coupling with process end closed. The back wheels slowly tightened, when 2mm or so, with standard white bars where two back wheel bolt hole measurement above and below, confirm two back wheel bolt hole concentricity. Then, the symmetrical horizontal mount two temporary bolts tightened, attention to monitor dial indicator, then install the symmetrical temporary bolts, this time sites slowly moving rotor, in the measured circumference of 8 equal parts back wheel rim rock, each measuring relative changes in value should be less than 0.02mm. 6.4.5.4 coupling reamed and paired bolt reaming die reamer, adjustable reamers, boring mill, in several ways. 6.4.5.4.1 General requirements before reaming or boring,
/
本文档为【网络编程聊天室】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。 本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。 网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。

历史搜索

    清空历史搜索