Description: socket 分别以tcp,udp两种方式通信的代码。
同一套代码,依靠不同的makefile文件,分别编译出在windows环境、linux环境、Android环境下的执行文件。-socket respectively tcp, udp communication code in two ways. The same set of code, relying on a different makefile files, respectively, lies in the windows environment to compile, linux environment, Android environment execute the file. Platform: |
Size: 4096 |
Author:孙涛 |
Hits:
Description: 一个比较好用的网口调试工具,包含tcp,udp服务端和客户端,可以16进制显示-A more useful tool for debugging network port, including the tcp, udp server and client, can display 16 hex Platform: |
Size: 416768 |
Author:wangyonggang |
Hits:
Description: 自制的linux下对一些外设接口的产测软件,在显示上使用Android界面,利用socket中的UDP来实现进程间通信。-Homemade linux some production measured peripheral interface software used on the display Android interface, a UDP socket to achieve inter-process communication. Platform: |
Size: 542720 |
Author:fan |
Hits:
Description: 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 Platform: |
Size: 52224 |
Author:rpudn93 |
Hits:
Description: 多台android设备,其中有一台作为服务端,则另外一台或几台作为客户端,然后通过UDP进行Socket自动连接.(Multiple Android devices, one as a server, another or a few as clients, and then Socket automatically connected through the UDP.) Platform: |
Size: 55296 |
Author:keiwei |
Hits:
Description: 两台或多台android设备,其中有一台作为服务端,则另外一台或几台作为客户端,然后通过UDP进行自动连接.其实现的原理很简单,服务端这一边通过MulticastSocket将自己的有关信息,如IP,端口等广播出去,同一个广播地址里面的客户端可以接收到该广播,并从中解析要相关的信息.(Two or more Android devices, including one as a server, then another one or several Taiwan as the client, and then through the UDP automatic connection. The principle is very simple, the server side through MulticastSocket information about yourself, such as IP, port broadcast with a broadcast address. The client can receive the broadcast, and related information from the analysis.) Platform: |
Size: 53248 |
Author:keiwei |
Hits: