登录
首页 » Java Develop » These two classes show an extremely simple java.net example of socket programmin...

These two classes show an extremely simple java.net example of socket programmin...

于 2022-05-31 发布 文件大小:1.01 kB
0 193
下载积分: 2 下载次数: 1

代码说明:

These two classes show an extremely simple example of java.net socket programming. They implement the Unix daytime protocol, an extremely simple protocol that consists entirely of the server sending its current local time and date to the client as an ASCII string. The server, to keep it very simple, does not use multiple threads. This code requires JDK 1.1 or later, but can easily be adapted to JDK 1.0. -These two classes show an extremely simple java.net example of socket programming. They i mplement the Unix daytime protocol. an extremely simple protocol that consists ent irely of the server sending its current local ti me and date to the client as an ASCII string. The s servers, and to keep it very simple. does not use multiple threads. This code requir es JDK 1.1 or later, but can easily be adapted to JDK 1.0.

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • java applet小程序,对话框的使用
    小APPLET程序,使用JAVA中的对话框-small APPLET procedures, the use of dialog JAVA
    2022-02-06 11:38:30下载
    积分:1
  • OReilly
    OReilly - Java & XSLT-OReilly- Java & XSLT
    2022-02-15 17:24:53下载
    积分:1
  • mail application source code two, the more powerful features
    应用java发送邮件的源码2个,功能也比较强大-mail application source code two, the more powerful features
    2023-05-06 09:50:03下载
    积分:1
  • 这是一个用JAVA编写的简单通讯录,代码简单易懂,条目可以自由添加...
    这是一个用JAVA编写的简单通讯录,代码简单易懂,条目可以自由添加-This is a simple to use JAVA to prepare contacts, easy-to-read code, entry is free to add
    2022-01-21 02:32:50下载
    积分:1
  • JUnit, java testing tool
    JUnit, java testing tool
    2022-05-31 19:07:03下载
    积分:1
  • JAVA编写的聊天工具,希望能和大家交流一下。请大家给点意见。...
    JAVA编写的聊天工具,希望能和大家交流一下。请大家给点意见。-JAVA prepared chat tools, hopes to be able to share this. Please give points.
    2022-03-24 13:24:20下载
    积分:1
  • 介绍java初学者的java程序。
    introduct java program for the java starters.
    2022-05-09 06:01:37下载
    积分:1
  • err
    客户通过Socket(InetAddress,port)建立与服务器的连接。服务器与客户都通过构造BufferedReader,PrintWriter来建立输入输出流,然后双方通过该输入输出流来相互传递信息,一旦收到客户方的连接请求,服务器accept()方法返回一个新建的Socket对象。客户端然后向服务器发送消息,比如注册,登录,查找好友等,服务器收到来自客户的请求后,针对不同的消息处理请求, 虽然UDP不可靠但是对于icq可靠性并不太重要,而且UDP快速,所以客户间发送信息通过UDP。用户登录时通过类DatagramPacket和DatagramSocket创建UDP包括其本地接受端口以及发送端口,默认端口为5000和5001,通过取得的好友的IP地址来向好友发送消息(send(DatagramPacket)和接受消息(receive(DatagramPacket))。当用户通过UDP收到消息后,可以通过DatagramPacket的方法InetAddress getAddress()得到对方的ip地址,通过对好友列表比较以判断是谁并提示用户收到某某的消息,然后用户选择该用户查看消息,如果好友列表没有该人就显示收到陌生人的消息。用户可以按陌生人按钮查看消息。 -err
    2022-01-23 10:11:51下载
    积分:1
  • some procedures used to achieve a capacity of java procedures, but is a C/S stru...
    些程序用java实现一个装机程序,不过是一个C/S架构,但是在数据库的设计方面与3层架构的构造方案我想对一些朋友还是否有一定的帮助吧-some procedures used to achieve a capacity of java procedures, but is a C/S structure, But in the database with the design of the three-tier structure of the program structure, I would like to some of my friends does it also will help it
    2022-06-13 07:55:54下载
    积分:1
  • To eat the string comparison algorithm is a similarity realize high efficiency,...
    吃算法是对字符串比较相似度的实现,效率高,正确率高。很有研究价值。-To eat the string comparison algorithm is a similarity realize high efficiency, high accuracy rate. Great research value.
    2022-03-26 17:21:23下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载