[LIP] Unix domain socket and netstat output query.

Shehjar Tikoo <shehjar_tikoo-/[email protected]>
Newsgroups gmane.user-groups.linux.india.programmers
Message-ID <[email protected]>
Hi everyone,

Greetings!

I am working on a project that requires me to work on
 Unix Domain sockets, but as of now I am not good 
enough at it, so obviously I am facing some problems 
while running the program.

I have a server that listens on a domain socket and a 
client that connects to the server on that socket.

When I netstat -l, this is what I get:

$netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign
Address         State
Active UNIX domain sockets (only servers)
Proto RefCnt Flags       Type       State        
I-Node Path
unix  2      [ ACC ]     STREAM     LISTENING     8063
    /tmp/expd

Here the Flags and State columns say that it is
listening for incoming connections. I cannot 
understand why the RefCnt column shows 2 when theres
just one process, the server, that is connected to 
the socket and I am not executing the server 2 times
nor am I forking it into two after creating the 
socket and the client's not trying to connect either.

Any help will be greatly appreciated.
Many thanks in advance.

Shehjar


__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.