|
|
Socket identifiers
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?
|
|
0
|
|
|
|
Reply
|
rishi.shah (13)
|
10/22/2005 4:00:21 AM |
|
<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
|
|
0
|
|
|
|
Reply
|
David
|
10/22/2005 4:48:57 AM
|
|
|
1 Replies
123 Views
(page loaded in 0.043 seconds)
Similiar Articles: Beginner question: binary data and socket.send - comp.lang.python ...Hi! Please help with the problem: send over TCPIP data packet organized as 6 bytes of identifier, integer (LSB) and length of following binary data,... extern typedef struct - comp.lang.c... extern object obj; > sock.c ===== > sock > new_socket ... In C, all identifiers starting with either a double underscore or an underscore ... Fortran to VB translator - an update - comp.compilersmight be serilaised into the terms: keyword("DO") identifier("I") number("1") symbol(",") .... ... GUI for Fortran programs - comp.lang.fortran One socket receives data that is used ... select: Bad file number - comp.unix.solaris... number - comp.unix.solaris... api.opengl The number you report is the list identifier. ... Could not create socket: Bad file number Comment on Could not create socket: Bad ... Practice of using fork() - comp.unix.programmerConsider DNS functions like 'gethostbyname' that might use a socket. After 'fork ... be so simply because the underlying libraries don't realize, like a client identifier ... filename/raw filename in script-fu functions? - comp.graphics.apps ...Sockets in gfortran? - comp.lang.fortran... limits.h> /* function type that is called for each filename ... Prog signal_intr_function} */ int tty_cbreak(int); /* {Prog ... Message queue sizing on Linux - comp.databases.ibm-db2... OSERR: EAGAIN (11) DATA #1 : system V > message queue identifier., PD_TYPE_SYSV_QUEUE ... Illegal seek in Unix Domain Socket - comp.unix.programmer ... Unix & Linux: Illegal ... Bad File Descriptor - comp.protocols.time.ntpThe worse thing is that when the link > comes back, ntpd still has his old socket ... number - comp.unix.solaris... api.opengl The number you report is the list identifier. coredump while reading the file using fread - comp.sys.hp.hpux ...Problem sending binary file via socket. - comp.unix.programmer ... Hi all, My client ... MATLAB - comp.soft ... sys.matlab ..... fread() to see how to use the file identifier ... Hox to match Linux PID to tomcat thread - comp.lang.java ...... by Thomas you won't be able to determine the individual Tomcat thread identifiers (if ... how to pass socket between threads in the same process - comp.unix ... Hox to match ... RFC 129 - Request for comments on socket name structure (RFC129)The following discussion covers three different schemes of socket identifier assignment using a simple example. User A at Host A has agreed (by letter, telephone, etc ... Tutorial - World of sockets! - mIRC Downloads - scripts, addons ...We have one command and one event for UDP Sockets, almost sockets identifiers work here to. The command is: /sockudp [-bntk] [port] [[numbytes] [text|%var|&binvar] The ... 7/16/2012 7:35:19 PM
|
|
|
|
|
|
|
|
|