Arnaldo:
Sorry, I have to bother you again with another Linux
socket question.

Suppose that I have a Linux IP socket connected for a
TCP connection and the socket is set as a non-blocking
one with fcntl().

Even the socket is set as non-blocking, is it really
possible to perform Non-Blocking Close on this socket?
i.e., can I make the "int=close(fd)" a non-blocking
call? 

The answer seems No to me based on my study. I am not
totally sure though.

If the answer is Yes, how?

Please help, thanks a lot,
Jingping
  
--- Arnaldo Carvalho de Melo <[EMAIL PROTECTED]>
wrote:

> On 10/5/06, Jingping Lin <[EMAIL PROTECTED]> wrote:
> > Hello, Linux Kernel:
> > For a project I will work on for mobile, I am
> looking
> > into the IP stacks on Linux.
> >
> > I have a few questions to bother you:
> 
> No bothering, so far, please see the below answers
> and try to check
> them all before "bothering" again 8)
> 
> > 1. is "socket.c" the file handling the socket
> > interface?
> 
> One of them
> 
> > 2. which function is for opening a socket?
> > It looks like "sock_map_fd()" is the one for
> > opening/creating a socket? Is that correct?
> > The "Linux IP Stacks Commentary" book suggested
> the
> > function is "int socket()" which I didn't find in
> > "socket.c" though.
> 
> Perhaps it is suggesting that you create the socket
> in userspace using
> the libc socket(2) function (see 'man socket') and
> then passing it
> thru some ioctl if you want to use kernel_sendmsg
> (make tags ; vi -t
> kernel_sendmsg) from kernelspace?
> 
> > 3. Do you have documentations discussing in
> details
> > the implemented socket interfaces?
> 
> Humm, I guess you can grep the sources for in kernel
> socket usage?
> 
> > Thanks a lot in advance for your help,
> 
> Best Regards,
> 
> - Arnaldo
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to