File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Sockets and Internet Protocols and the fly likes Socket and serversocket difference? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Socket and serversocket difference?" Watch "Socket and serversocket difference?" New topic

Socket and serversocket difference?

Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1599
what is the difference between socket and serversocket?

Keep Smiling Always — My life is smoother when running silent. -paul
[FAQs] [Certification Guides] [The Linux Documentation Project]
Joe Ess

Joined: Oct 29, 2001
Posts: 9168

Bookmark the Java API Documentation. Useful resource for this kind of knowledge:
This class implements server sockets. A server socket waits for requests to come in over the network. It performs some operation based on that request, and then possibly returns a result to the requester.
This class implements client sockets (also called just "sockets"). A socket is an endpoint for communication between two machines.

[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: Socket and serversocket difference?
It's not a secret anymore!