LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-07-2010, 10:51 AM   #1
grob115
Member
 
Registered: Oct 2005
Posts: 542

Rep: Reputation: 32
Socket Connections


Anyone knows the difference between a socket and TCP connection for connecting to an external system?
 
Old 12-07-2010, 11:40 AM   #2
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
I am not sure I fully understand what you are mean by difference between socket and TCP connection as a TCP connection is a form a socket.

According to what I have been taught, there are three types of sockets: Datagram, Stream, and Raw. Datagram sockets are connectionless an example being UDP. Stream sockets establish connections with TCP being a prime example of this type and raw sockets are used for lower level applications like Ping. From a programming stand point, I recall there being "Inet" domain sockets, like I just described above and "Unix" domain sockets that are used for inter-process communication.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Perl socket multiple connections Fredde87 Programming 7 10-18-2010 08:02 AM
how to close a socket and refuse waiting connections? hboosh Programming 2 01-05-2010 02:59 AM
help with socket connections RedOctober45 Linux - Software 1 10-26-2007 12:03 AM
a question about multiple connections in socket programming moloza Programming 7 05-22-2006 10:31 AM
Multiple connections on one socket? (Java) smoothdogg00 Programming 2 04-09-2006 09:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration