Description: It is a socket server. It accepts a connection from client and prints on the console a message that client writes Platform: |
Size: 53248 |
Author:培育 |
Hits:
Description: 利用socket进行网上对话聊天,包括服务器端和客户端程序源码及用户界面的建立.-You can chat with socket online,including server and client source code and the implementation of GUI Platform: |
Size: 6144 |
Author:王妍 |
Hits:
Description: 用Java实现Web服务器
本文实现了GET请求的Web服务器程序的方法,通过创建ServerSocket类对象,监听端口8080; 等待、接受客户机连接到端口8080; 创建与socket字相关联的输入流和输出流 然后,读取客户机的请求信息,若请求类型是GET,则从请求信息中获取所访问的HTML文件名,如果HTML文件存在,则打开HTML文件,把HTTP头信息和HTML文件内容通过socket传回给Web浏览器,然后关闭文件。否则发送错误信息给Web浏览器。最后,关闭与相应Web浏览器连接的socket字。-Java Web server is to achieve a GET request to the Web server, through the creation of ServerSocket class object, bugging port 8080; Wait, a client is connected to port 8080; Socket character creation and the associated input and output streams flow then read the client's request information, if the request is the type of GET, request information from being accessed visit HTML document, and if the HTML document exists, then open the HTML file, HTTP headers and HTML files through the socket sent back to the Web browser and then close the file. Otherwise, send the wrong message to the Web browser. Finally, the closing and the corresponding Web browser connected to the socket word. Platform: |
Size: 10240 |
Author:雨岳 |
Hits:
Description: Http客户端程序已集成在Java语言中,可以通过URLConnection类调用。遗憾的是,由于SUN没有公布Http客户程序的源码,它实现的细节仍是一个谜。本文根据HTTP协议规范,用Java.net.Socket类实现一个HTTP协议客户端程序。 -Http client program has been integrated into the Java language, URLConnection can call category. Unfortunately, because Sun has not announced Http client source code, it achieved the details are still a mystery. According to the HTTP protocol specification. with the realization of a category Java.net.Socket HTTP client program. Platform: |
Size: 6144 |
Author:郑描中 |
Hits:
Description: 本文介绍一种用Java的Socket和ServerSocket实现服务器和客户机通讯的的方法。原理是在服务器端建立ServerSocket端口并监听,接收到客户端的连接请求时建立Socket,得到Socket的输入输出流。在客户端新建Socket并获得输入输出流。服务器和客户端的输入输出流建立后使用writeLine()和println()方法彼此发送和接收数据。为提高代码效率,建立两个类clientAgent和serverAgent。
-This article introduces a Java ServerSocket socket server and and client communication methods. The principle is established on the server side ServerSocket ports and eavesdropping, reception to the client connection request to establish socket, the socket to be input and output streams. The new Socket client and access input and output streams. Server and client input and output streams used after the establishment of writeLine (), and println () side France each other to send and receive data. To improve code efficiency, the establishment of two categories clientAgent and serverAgent. Platform: |
Size: 6144 |
Author:郑描中 |
Hits:
Description: 一个用JAVA实现的socket通信,包含服务器端和客户端。-JAVA with a socket communications, including server and the client. Platform: |
Size: 5120 |
Author:sunny |
Hits:
Description: java socket编程客户端例子
简单的连接服务端,并发送一个数据包,然后接受数据包-java client socket programming examples of simple connectivity services side, and send a data packet. then receive a data packet Platform: |
Size: 1024 |
Author:hunanxdq |
Hits:
Description: TCP/IP编程的基础--socket
包括C/JAVA TCP/UDP 服务端和客户端
六套代码,供新人学习、老人测试联调用
支持win32 Linux(JAVA版本的需要自己新增JDK)-TCP/IP programming basis- socket including C/JAVA TCP/UDP server and client six sets of code for the new study, elderly test joint call to support win32 Linux (JAVA version of the need to add JDK) Platform: |
Size: 9216 |
Author:冯进荣 |
Hits:
Description: 基于Java的网络聊天程序,用Java Socket实现网络聊天室,分为服务器和客户端两部分,客户端界面实现聊天功能,服务器是信息中心,类似QQ,有注解.-Java-based network chat program, using Java Socket network chat rooms, divided into server and client in two parts, the client chat interface, the server is the information center, similar to QQ, there are comments. Platform: |
Size: 64512 |
Author:liuhong |
Hits:
Description: 轻松学会用socket编写的简单的聊天程序,包括客户端和服务器-Learn how to use socket easily prepared by simple chat program, including client and server Platform: |
Size: 1024 |
Author:jioncomer |
Hits:
Description: 利用socket套接字实现服务器和客户端的文件传输。-Socket using socket server and client to achieve the file transfer. Platform: |
Size: 1024 |
Author:xinliu |
Hits:
Description: Java 基于socket通讯的聊天室~
有Server短和Client,多线程可以同时一对多聊天~-Java-based chat room communications socket ~ There Server is very short and the Client, at the same time one-to-many multi-threaded chat ~ Platform: |
Size: 4096 |
Author:韩小勇 |
Hits:
Description: 用Java Socket完成如下功能:建立客户端和服务器端通讯,服务器端地址为本地端口自拟。两端以TCP形式通讯,假设客户端Class叫Client,服务器端Class叫Server。当运行 java Client Hello时,服务器端能接受客户发来的Hello字符并打印”Receive Hello”然后返回给客户端“How r u doing”字符串 客户端收到后打印”Received How are you doing”. 此时服务器端服务始终运行并未停止并等待其他Socket连接(客户端运行一次可以停止),直到客户运行 java Client Bye时 服务器端收到”Bye”并打印”I don’t wanna die”后 服务器停止运行。-Java Socket complete with the following functions: the establishment of client and server communications, server-side address of the local port from be. TCP in the form of communication at both ends, assuming that the client Class called Client, server-side Class called Server. Java Client Hello When running, the server can accept Hello Guest sent characters and print the " Receive Hello" and then go back to the client " How ru doing" string after the client received print " Received How are you doing" . This When running server-side service is not always stop and wait for the other Socket connection (the client can stop a run), until the customer is running java Client Bye received at the server-side " Bye" and print " I don' t wanna die" after the server to stop run. Platform: |
Size: 32768 |
Author:wangdan |
Hits:
Description: android利用socket发送数据到PC,PC端也用socket接收并显示。-android using socket to send data to PC, PC-side socket is also used to receive and display. Platform: |
Size: 46080 |
Author:297470279 |
Hits: