What protocol does java socket use?
•
Java
I started using the socket and socketserver classes in Java
As mentioned above, I want to know which protocol (or what it is called) the socket class uses by default
It may be TCP, but I can't find anything specific. Maybe I ignored something
Solution
Yes, socket and ServerSocket use TCP / IP
java. Net package overview is explicit, but it can easily be ignored
UDP is handled by datagramsocket class
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码