Jump to content

What is Socket.

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
7 replies to this topic

#1
Waseempki

Waseempki

    Newbie

  • Members
  • Pip
  • 7 posts
Can we communicate/connect two computers using their IPs and port numbers without creating socket?
What is Socket?
Why socket is used?
Thank You

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
A socket represents the connection you are describing.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
Waseempki

Waseempki

    Newbie

  • Members
  • Pip
  • 7 posts
Can any body explain me bind and listen state of socket with example?
Thank you

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
In which language? Have you done a google search yet?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#5
Waseempki

Waseempki

    Newbie

  • Members
  • Pip
  • 7 posts
java language

#6
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Socket (Java 2 Platform SE v1.4.2)
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#7
Waseempki

Waseempki

    Newbie

  • Members
  • Pip
  • 7 posts
Thank for reply
Can you give example of socket in daily life?

#8
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Every connection you make from your computer to another is probably through a socket. You're using one to read this message!
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog