资源简介
JAVA联机版飞机大战(毕业设计 黄跃然 应用技术)
可直接运行。做毕业设计、课程设计或者想研究下技术的可以下载学习。需要更多资源的可以关注我。

代码片段和文件信息
package game.hyr.Plane.Clienk;
import java.io.IOException;
import java.net.DatagramSocket;
import java.net.SocketException;
public class AutoFoundPort {
// public static void main(String[] args) throws IOException {
// DatagramSocket socket = getRandomPort();
//// System.out.println(“__________socket.getLocalPort():“ + socket.getLocalPort());
//// int a1 = socket.getLocalPort();
//// System.out.println(a1);
//
//// DatagramSocket socket2 = getRangePort(new int[] { 3843 4584 4843 });
//// System.out.println(“__________socket2.getLocalPort():“ + socket2.getLocalPort());
// }
public static DatagramSocket getRandomPort() throws SocketException {
DatagramSocket s = new DatagramSocket(0);
return s;
}
public static DatagramSocket getRangePort(int[] ports) throws IOException {
for (int port : ports) {
try {
return new DatagramSocket(port);
} catch (IOException ex) {
continue; // try next port
}
}
// if the program gets here no port in the range was found
throw new IOException(“未找到空闲端口“);
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-12-30 10:30 飞机大战0.9网络版\
文件 307 2014-09-08 11:14 飞机大战0.9网络版\.classpath
文件 400 2014-09-08 11:14 飞机大战0.9网络版\.project
目录 0 2015-12-30 10:30 飞机大战0.9网络版\.settings\
文件 629 2014-09-08 11:14 飞机大战0.9网络版\.settings\org.eclipse.jdt.core.prefs
目录 0 2014-09-13 22:55 飞机大战0.9网络版\bin\
目录 0 2014-09-13 22:55 飞机大战0.9网络版\bin\game\
目录 0 2014-09-13 22:55 飞机大战0.9网络版\bin\game\hyr\
目录 0 2014-09-13 22:55 飞机大战0.9网络版\bin\game\hyr\Plane\
目录 0 2015-12-30 10:30 飞机大战0.9网络版\bin\game\hyr\Plane\Clienk\
文件 936 2014-09-08 11:14 飞机大战0.9网络版\bin\game\hyr\Plane\Clienk\AutoFoundPort.class
文件 3294 2014-09-08 11:46 飞机大战0.9网络版\bin\game\hyr\Plane\Clienk\BadPlane.class
文件 510 2014-09-08 11:14 飞机大战0.9网络版\bin\game\hyr\Plane\Clienk\Constant.class
文件 2437 2014-09-08 11:35 飞机大战0.9网络版\bin\game\hyr\Plane\Clienk\GameClient$UDPRecvThread.class
文件 3548 2014-09-08 11:35 飞机大战0.9网络版\bin\game\hyr\Plane\Clienk\GameClient.class
文件 1012 2014-09-08 11:14 飞机大战0.9网络版\bin\game\hyr\Plane\Clienk\Gamegongju.class
文件 5507 2014-09-08 11:45 飞机大战0.9网络版\bin\game\hyr\Plane\Clienk\Plane.class
文件 779 2014-09-08 11:14 飞机大战0.9网络版\bin\game\hyr\Plane\Clienk\PlaneGameClienk$1.class
文件 972 2014-09-08 11:14 飞机大战0.9网络版\bin\game\hyr\Plane\Clienk\PlaneGameClienk$ConnectDialog$1.class
文件 1697 2014-09-08 11:14 飞机大战0.9网络版\bin\game\hyr\Plane\Clienk\PlaneGameClienk$ConnectDialog$2.class
文件 2075 2014-09-08 11:14 飞机大战0.9网络版\bin\game\hyr\Plane\Clienk\PlaneGameClienk$ConnectDialog.class
文件 1556 2014-09-08 11:14 飞机大战0.9网络版\bin\game\hyr\Plane\Clienk\PlaneGameClienk$KeyControl.class
文件 1010 2014-09-08 11:14 飞机大战0.9网络版\bin\game\hyr\Plane\Clienk\PlaneGameClienk$PaintThread.class
文件 5542 2014-09-08 11:14 飞机大战0.9网络版\bin\game\hyr\Plane\Clienk\PlaneGameClienk.class
文件 3433 2014-09-08 11:14 飞机大战0.9网络版\bin\game\hyr\Plane\Clienk\PlaneMoveMessages.class
文件 3269 2014-09-08 11:14 飞机大战0.9网络版\bin\game\hyr\Plane\Clienk\PlaneNewMessages.class
文件 431 2014-09-08 11:17 飞机大战0.9网络版\bin\game\hyr\Plane\Clienk\SendMessages.class
文件 2459 2014-09-08 11:40 飞机大战0.9网络版\bin\game\hyr\Plane\Clienk\Zidan.class
文件 2527 2014-09-08 11:49 飞机大战0.9网络版\bin\game\hyr\Plane\Clienk\ZidanNewMessages.class
目录 0 2015-12-30 10:30 飞机大战0.9网络版\bin\game\hyr\Plane\Server\
文件 671 2014-09-08 11:14 飞机大战0.9网络版\bin\game\hyr\Plane\Server\PlaneGameServer$Client.class
............此处省略43个文件信息
相关资源
- java图片浏览器跨平台运行程序与源码
- 基于java的在线考试系统-毕业设计
- 微博系统(Java源码,servlet+jsp),适
- java串口通信全套完整代码-导入eclip
- jsonarray所必需的6个jar包.rar
- 三角网构TIN生成算法,Java语言实现
- java代码编写将excel数据导入到mysql数据
- Java写的cmm词法分析器源代码及javacc学
- JAVA JSP公司财务管理系统 源代码 论文
- JSP+MYSQL旅行社管理信息系统
- 推荐算法的JAVA实现
- 基于Java的酒店管理系统源码(毕业设
- java-图片识别 图片比较
- android毕业设计
- java23种设计模式+23个实例demo
- java Socket发送/接受报文
- JAVA828436
- java界面美化 提供多套皮肤直接使用
- 在线聊天系统(java代码)
- 基于Java的图书管理系统807185
- java中实现将页面数据导入Excel中
- java 企业销售管理系统
- java做的聊天系统(包括正规课程设计
- Java编写的qq聊天室
- 商店商品管理系统 JAVA写的 有界面
- JAVA开发聊天室程序
- 在linux系统下用java执行系统命令实例
- java期末考试试题两套(答案) 选择(
- JAVA3D编程示例(建模、交互)
- Java 文件加密传输
评论
共有 条评论