• Post Reply Bookmark Topic Watch Topic
  • New Topic

What is socket programming?

 
Mahtab Md Bakhsh jamil
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am new to javaRanch.
i have my question as-
what is java socket programming?
how it is helping people in daily life?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An introduction to Java networking can be found in the Sun Java Tutorial.
 
Bob Ruth
Ranch Hand
Posts: 320
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just a light description: think of a "socket" as a connector through which we can communicate with another network device. Think of a socket connection as asking to have a "cable" hooked up between two machines. The cable is not actually a real cable but is the network connection external to the computer. The socket doesn't really have to know what the connection is.... it just serves as an "end-point" at each computer through which all communication is performed. You read from a socket to get data in.... you write to a socket to send data out. The socket mechanism handles the addressing and protocol required so that, all you have to do, is read or send data from or to the socket.
 
Mahtab Md Bakhsh jamil
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have just started..
Thanks a lot ! BOB.

[ January 30, 2008: Message edited by: Mahtab Md Bakhsh jamil ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!