简体   繁体   English

当我们使用保留端口时,为什么套接字编程工作?

[英]Why sockets programming work when we use a reserved port?

Why when we use a reserved port in java socket its work on the localhost?为什么当我们在 java socket 中使用保留端口时,它在本地主机上工作?

ServerSocket ss = new ServerSocket(443);

This port from reserved ports (0~1023),but its work without any problem !!这个端口来自保留端口(0~1023),但它的工作没有任何问题!!

您可以使用该端口,因为该保留端口未用于任何其他目的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么在拥有UrlConnection时使用套接字 - why use Sockets when we have UrlConnection 在 ORMLite 中,当 Object 似乎可以工作时,为什么我们应该使用具有特定类型 ID 的 DAO? - In ORMLite why should we use DAOs with an ID of a specific type when Object seems to work? 为什么在使用LinkedBlockingQueue时使用ConcurrentLinkedQueue? - Why use ConcurrentLinkedQueue when we have LinkedBlockingQueue? 当我们有 OkHttp 时为什么要使用 Retrofit - why use Retrofit when we have OkHttp 当我们使用renameTo()2次失败时,为什么呢? - when we use renameTo() 2 times failed, why? 为什么我们必须使用InetSocketAddress输入用于使用ServerSocketChannel的端口号 - Why do we have to use InetSocketAddress to enter our port number for using ServerSocketChannel 使用不同的端口号创建套接字时已使用的地址 - Address already in use while using different port numbers to create sockets 为什么我们需要Java中的多进程编程? - Why do we need multiprocess programming in Java? Eclipse 中的端口已在使用 8080 错误提示,但它在运行时在 web 浏览器中的端口 8080 上工作 - Port already in use 8080 error prompts in Eclipse but it does work on port 8080 in web browser when running 我们可以在Android编程中使用Optionals吗? - Can we use Optionals in Android programming?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM