What protocol does java socket use?

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
分享
二维码
< <上一篇
下一篇>>