Socket identifiers
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Socket identifiers




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Socket identifiers  
rishi.shah@patni.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-24-05 08:48 PM

If I am creating multiple sockets in a loop and also accepting new
connections, then are the socket identifiers always uniquely assigned
in unix?
If I use the pipe command and the socket command in the same program
then will unix maintain the uniqueness of pipe identifiers and socket
identifiers combined?






[ Post a follow-up to this message ]



    Re: Socket identifiers  
David Schwartz


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-24-05 08:48 PM


<rishi.shah@patni.com> wrote in message
news:1129953621.028002.206150@g14g2000cwa.googlegroups.com...

> If I am creating multiple sockets in a loop and also accepting new
> connections, then are the socket identifiers always uniquely assigned
> in unix?

Obviously two different sockets can't have the same identifier at the
same time.

> If I use the pipe command and the socket command in the same program
> then will unix maintain the uniqueness of pipe identifiers and socket
> identifiers combined?

A socket and a pipe can't have the same identifier because they share
namespace. For example, the 'close' function can be used to close either a
socket descriptor or a pipe descriptor.

DS







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:49 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register