Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-29-2001, 02:08 AM   #1
LQ Newbie
Registered: Aug 2001
Location: Chennai
Posts: 1

Rep: Reputation: 0
sockets in linux 2.4.2 kernel


i'm trying to run a simple client and server in my redhat linux 2.4.2 .

i created TCP stream socket on both client and server and attempted to run the server and client in the same machine in different consoles.

I'm not able to establish connection with the server. however the program works fine with linux kernel 2.2. Is there any change with the usage of sockets with the new kernel ?

I found that the socket descriptors for both the client and server to be 3 !
could anyone explain why the descriptors were same instead of being unique ?

thanks in advance ,
Old 06-29-2002, 09:21 PM   #2
LQ Newbie
Registered: Jun 2002
Location: Karachi Pakistan
Distribution: RHL 7.2
Posts: 1

Rep: Reputation: 0
hmm for socket programming try to read the book "Linux Programming By Example" by QUE. u can also download its code from

hope this helps


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
what are kernel sockets? bhuvan007 Linux - Networking 5 12-24-2005 03:35 AM
Kernel module using netlink sockets arunka Programming 1 03-31-2005 07:42 AM
Linux Sockets JanusPaul Programming 5 11-14-2004 11:44 AM
Linux sockets linlai Programming 2 07-16-2002 02:51 PM
Sockets in Linux GhostBoot Linux - Networking 1 05-18-2001 12:36 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:39 AM.

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