文件名称:android-socket
介绍说明--下载内容均来自于网络,请自行研究使用
android socket网络通信编程实例,TCP/IP Socket、ServerSocket的形式。在JAVA编程中, 经常使用java.net和javax.net包来开发socket程序,下面列出所有常用的类,并简单介绍。再此说明一下:Socket仅仅是对TCP、UDP网络接口的封装,不涉及上层协议。
Java.net
Java.net.Socket 客户端连接使用的TCP socket
Java.net.DatagramSocket 客户端和服务端共同使用的UDP socket
Java.net.ServerSocket 服务端TCP socket监听端口
Java.netInetAddress IP地址封装类
Java.net.DataGramPacket 通过DatagramSocket收发的数据包的封装类,包括数据和对端的IP地址、UDP端口 -android socket network communications programming examples, TCP/IP Socket, ServerSocket form of. In the JAVA programming, often using java.net package to develop socket and javax.net procedures listed below all the usual classes, and a brief introduction. Then explain this: Socket is only TCP, UDP network interface package, does not involve the upper layer protocol.
Java.net
Java.net.Socket client connections using TCP socket
Java.net.DatagramSocket client and server using UDP socket joint
Java.net.ServerSocket TCP socket server listening port
Java.netInetAddress IP address encapsulation class
Java.net.DataGramPacket DatagramSocket class by encapsulating data packets sent and received, including data and peer IP address, UDP port
Java.net
Java.net.Socket 客户端连接使用的TCP socket
Java.net.DatagramSocket 客户端和服务端共同使用的UDP socket
Java.net.ServerSocket 服务端TCP socket监听端口
Java.netInetAddress IP地址封装类
Java.net.DataGramPacket 通过DatagramSocket收发的数据包的封装类,包括数据和对端的IP地址、UDP端口 -android socket network communications programming examples, TCP/IP Socket, ServerSocket form of. In the JAVA programming, often using java.net package to develop socket and javax.net procedures listed below all the usual classes, and a brief introduction. Then explain this: Socket is only TCP, UDP network interface package, does not involve the upper layer protocol.
Java.net
Java.net.Socket client connections using TCP socket
Java.net.DatagramSocket client and server using UDP socket joint
Java.net.ServerSocket TCP socket server listening port
Java.netInetAddress IP address encapsulation class
Java.net.DataGramPacket DatagramSocket class by encapsulating data packets sent and received, including data and peer IP address, UDP port
(系统自动生成,下载前可以参看下载内容)
下载文件列表
android socket\android socket.doc
..............\......._server\.classpath
..............\..............\.mymetadata
..............\..............\.project
..............\..............\.settings\org.eclipse.jdt.core.prefs
..............\..............\src\server\AndroidServer.java
..............\..............\WebRoot\index.jsp
..............\..............\.......\META-INF\MANIFEST.MF
..............\..............\.......\WEB-INF\classes\server\AndroidServer.class
..............\..............\.......\.......\web.xml
..............\testSocket\.classpath
..............\..........\.project
..............\..........\AndroidManifest.xml
..............\..........\bin\classes.dex
..............\..........\...\net\testSocket\R$attr.class
..............\..........\...\...\..........\R$drawable.class
..............\..........\...\...\..........\R$id.class
..............\..........\...\...\..........\R$layout.class
..............\..........\...\...\..........\R$string.class
..............\..........\...\...\..........\R.class
..............\..........\...\...\..........\TestSocket$1.class
..............\..........\...\...\..........\TestSocket.class
..............\..........\...\resources.ap_
..............\..........\...\testSocket.apk
..............\..........\default.properties
..............\..........\gen\net\testSocket\R.java
..............\..........\proguard.cfg
..............\..........\res\drawable-hdpi\icon.png
..............\..........\...\.........ldpi\icon.png
..............\..........\...\.........mdpi\icon.png
..............\..........\...\layout\main.xml
..............\..........\...\values\strings.xml
..............\..........\src\net\testSocket\TestSocket.java
..............\android_server\WebRoot\WEB-INF\classes\server
..............\..............\.......\.......\classes
..............\..............\.......\.......\lib
..............\testSocket\bin\net\testSocket
..............\..........\gen\net\testSocket
..............\..........\src\net\testSocket
..............\android_server\src\server
..............\..............\WebRoot\META-INF
..............\..............\.......\WEB-INF
..............\testSocket\bin\net
..............\..........\gen\net
..............\..........\res\drawable-hdpi
..............\..........\...\drawable-ldpi
..............\..........\...\drawable-mdpi
..............\..........\...\layout
..............\..........\...\values
..............\..........\src\net
..............\android_server\.myeclipse
..............\..............\.settings
..............\..............\src
..............\..............\WebRoot
..............\testSocket\assets
..............\..........\bin
..............\..........\gen
..............\..........\res
..............\..........\src
..............\android_server
..............\testSocket
android socket