问题描述
我正在学习java中的网络。我不清楚什么是端口。
我还需要知道什么是套接字?
I am studying Networking in java.I am not clear about what are ports.Also i need to know about what is a socket?
请解释一下。
推荐答案
PORTS:
在计算机网络中,术语端口可以指物理或虚拟连接点。
In computer networking, the term port can refer to either physical or virtual connection points.
物理网络端口允许将电缆连接到计算机,路由器,调制解调器和其他外围设备。
虚拟端口是TCP / IP网络的一部分。这些端口允许软件应用程序共享硬件资源而不会相互干扰。计算机和路由器自动管理通过其虚拟端口传输的网络流量。出于安全目的,网络防火墙还提供对每个虚拟端口上的流量流的一些控制。
Physical network ports allow connecting cables to computers, routers, modems and other peripheral devices.
Virtual ports are part of TCP/IP networking. These ports allow software applications to share hardware resources without interfering with each other. Computers and routers automatically manage network traffic traveling via their virtual ports. Network firewalls additionally provide some control over the flow of traffic on each virtual port for security purposes.
SOCKET:
套接字表示两个网络应用程序之间的单个连接。
套接字是网络上运行的两个程序之间的双向通信链路的一个端点
A socket represents a single connection between two network applications.A socket is one end-point of a two-way communication link between two programs running on the network
好读:
- Networking Basics
- Socket
由于您不熟悉网络,因此必须访问。
Since you are new to networking, you must visit this link .
这篇关于网络中的端口是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!