• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Socket and serversocket difference?

 
Akhilesh Trivedi
Ranch Hand
Posts: 1608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the difference between socket and serversocket?
 
Joe Ess
Bartender
Posts: 9312
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bookmark the Java API Documentation. Useful resource for this kind of knowledge:

java.net.ServerSocket
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.


java.net.Socket
This class implements client sockets (also called just "sockets"). A socket is an endpoint for communication between two machines.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic