Description: 这是一个TCP服务器端的实现代码,监听客户端的请求,在子线程中处理各个客户端发来的数据包,再将处理后的结果送回客户端。这里提供的代码很完整,包括一个mainclass,一个监听class和它的interface,一个包处理class,一个发送class,基本上可以直接使用。-This is a TCP server-side implementation code, bugging the client's request, the child acquires handle all the client's data packets, and then after the results back to the client. Here is the complete code, including a mainclass, a listening class and its interface, a packet processing class, a class this basically straightforward to use. Platform: |
Size: 8035 |
Author:职工 |
Hits:
Description: 在java下通过对本机各个端口的检测 在链路层抓获UDP、TCP、TPv6、IPv4等数据包,并对数据包进行分析-In java through various ports of the testing machine in the link layer captured UDP, TCP, TPv6, IPv4, such as data packets, and packet analysis Platform: |
Size: 5120 |
Author:张鹏 |
Hits:
Description: Transmission Control Protocol (TCP/IP) communications are used to send data from one computer to another over a network or from one application to another within a single computer.
The jtcp.m program uses Matlab s ability to call Java code to enable it to send and/or receive TCP packets. One Matlab session can communicate with another Matlab session (on the same machine or over the network) or it can communicate with a completely different program (again, on the same machine or over the network).
The jtcp.m program is basically just a friendly wrapper for Rodney Thomson s "example" TCP/IP code-Transmission Control Protocol (TCP/IP) communications are used to send data from one computer to another over a network or from one application to another within a single computer. The jtcp.m program uses Matlab' s ability to call Java code to enable it to send and/or receive TCP packets. One Matlab session can communicate with another Matlab session (on the same machine or over the network) or it can communicate with a completely different program (again, on the same machine or over the network). Platform: |
Size: 6144 |
Author:张明 |
Hits:
Description: JAVA实现的TCP通信协议的客户端源码,请与服务器源码一起运行,实现两者之间的通信,源码所在的包需要修改成自己的项目所在的包。-JAVA TCP communication protocol to achieve the client source code, please run in conjunction with the server source code, to achieve communication between the two, where the packets need to modify the source code into their own projects where the package. Platform: |
Size: 2048 |
Author:廉 |
Hits:
Description: The term network programming refers to writing programs that execute across multiple devices (computers), in which the devices are all connected to each other using a network.
The java.net package of the J2SE APIs contains a collection of classes and interfaces that provide the low-level communication details, allowing you to write programs that focus on solving the problem at hand.
The java.net package provides support for the two common network protocols:
TCP: TCP stands for Transmission Control Protocol, which allows for reliable communication between two applications. TCP is typically used over the Internet Protocol, which is referred to as TCP/IP.
UDP: UDP stands for User Datagram Protocol, a connection-less protocol that allows for packets of data to be transmitted between applications. Platform: |
Size: 129024 |
Author:Bhaskar |
Hits:
Description: JPCAP是一个开源库从Java应用程序的网络数据包捕获并发送。它提供的设施:
捕获原始数据包从电线。
脱机文件保存捕获的数据包,读取捕获的数据包从一个脱机文件。
自动识别数据包类型,并生成相应的Java对象(用于以太网的IPv4,IPv6中,ARP / RARP,TCP,UDP和ICMPv4报文)。
根据用户指定的规则过滤数据包调度给应用程序之前。
原始数据包发送到网络
Jpcap是基于 libpcap的/ WinPcap的在C和Java实现。JPCAP已通过测试微软Windows(98/2000/XP/Vista的),Linux操作系统(Fedora,Ubuntu的的)的Mac OS X(达尔文),FreeBSD的,和Solaris。-JPCAP is an open source database from a Java application to capture and transmit network packets. It provides facilities: capture the raw data packets from the wire. Offline Files save the captured packets, read the captured data packets from an offline file. Automatic identification packet type, and generates the corresponding Java objects (for Ethernet IPv4, IPv6 in, ARP/RARP, TCP, UDP, and ICMPv4 packets). According to the rules specified by the user to filter data packets to the application before dispatch. Original packet is sent to the network Jpcap libpcap-based/WinPcap in C and Java. JPCAP has been tested Microsoft Windows (98/2000/XP/Vista' s), Linux operating system (Fedora, Ubuntu' s) for Mac OS X (Darwin), FreeBSD' s, and Solaris. Platform: |
Size: 40960 |
Author:王夏洋 |
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: