12-17-2006
Is the previous socket properly close()d? If not, there might be an interval during which the socket may still be "occupied" until it times out. I experience this a lot with server sockets.
10 More Discussions You Might Find Interesting
1. Solaris
Hello all
I would like to make shift+insert a shortcut for "paste from clipboard".
how do I do it?
where can I find the format to set this key binding, or others?
thanks
Ori (4 Replies)
Discussion started by: orid
4 Replies
2. IP Networking
Hi,
I bound a virtual IP to a network card on my E450 server and I am getting this error when I reboot the server, saying, " retrying host, RPC time out. I had to break this sequence and allow other services to load. Of course they didn't load properly. Please how can I sort this out? I do need... (8 Replies)
Discussion started by: Ronny
8 Replies
3. HP-UX
Hi All,
I would like to know the behaviour of psrset in the following model.
I have a 4 CPU machine on which i have a couple of databases running and a web application running.
supposing i have processers 0 1 2 and 3
I bind processor 0 and 1 to the web application.
This ensures that... (3 Replies)
Discussion started by: nileshkarania
3 Replies
4. Shell Programming and Scripting
What is the best way to bind files in column wide?
Looks a simple, but I don't know the most economic way.
I tried to merge, and cat function, but not success!!
Ex.)
file 1
1 2 3
2 3 4
file 2
3 4 5
4 5 6
file 3
2 3 4
1 2 7
I would like to see the result below
file 4
1 2 3 3... (2 Replies)
Discussion started by: Jae
2 Replies
5. Programming
Hi,
I need a way to bind the lifescope of a file to the lifescope of a process, but that file needs to remain visible in the filesystem for other processes. I've been able to do this on Widows based OSes, but the UNIX based OSes solution have eluded me so far. I am aware of the common solution... (3 Replies)
Discussion started by: Fronsac
3 Replies
6. IP Networking
hi all,
i have an udp based application that doesn't bind to any particular address.
-->while sneding the packets, i have some doubts....
1) can the packet be transmitted with an source ip address as 0.0.0.0
2) if we select an interface based on destination ip address,... (0 Replies)
Discussion started by: vijaypdp2006
0 Replies
7. IP Networking
Hi all,
Application A is using an port number 100 and is binded to an interface 1.
Application B is using an port number 100 and is binded to an interface 2.
can we bind the two applications on same port number based on interfaces.
what i want to know is two... (3 Replies)
Discussion started by: vijaypdp2006
3 Replies
8. Red Hat
Hi,
I'm building an application that would connect to either one of the 2 databases in production. I want to keep the source code common for both environments.
The problem lies in the fact that in the target servers there will be only one of the 2 databases installed, hence the application... (2 Replies)
Discussion started by: ishdeepanand
2 Replies
9. UNIX for Dummies Questions & Answers
I was recently reading a manual of wget and there was command as "binding-address" and I read about tcp/ip binding but i don't understand one thing is...what is the use of binding address in wget..
Can anyone help me with this. (6 Replies)
Discussion started by: jFreak619
6 Replies
10. Shell Programming and Scripting
Hi,
I am rite now made my unix box machine as ftp server that is it acting both ways..Now I have sftp script but when I execute get the following error
ftp: bind: Address already in use
$ From Secure4Access server process at 31-Oct-11 04:52...
Your session is inactive and will... (5 Replies)
Discussion started by: rahul125
5 Replies
BIND(2) BSD System Calls Manual BIND(2)
NAME
bind -- bind a name to a socket
SYNOPSIS
#include <sys/socket.h>
int
bind(int socket, const struct sockaddr *address, socklen_t address_len);
DESCRIPTION
bind() assigns a name to an unnamed socket. When a socket is created with socket(2) it exists in a name space (address family) but has no
name assigned. bind() requests that address be assigned to the socket.
NOTES
Binding a name in the UNIX domain creates a socket in the file system that must be deleted by the caller when it is no longer needed (using
unlink(2)).
The rules used in name binding vary between communication domains. Consult the manual entries in section 4 for detailed information.
RETURN VALUES
Upon successful completion, a value of 0 is returned. Otherwise, a value of -1 is returned and the global integer variable errno is set to
indicate the error.
ERRORS
The bind() system call will fail if:
[EACCES] The requested address is protected, and the current user has inadequate permission to access it.
[EADDRINUSE] The specified address is already in use.
[EADDRNOTAVAIL] The specified address is not available from the local machine.
[EAFNOSUPPORT] address is not valid for the address family of socket.
[EBADF] socket is not a valid file descriptor.
[EDESTADDRREQ] socket is a null pointer.
[EFAULT] The address parameter is not in a valid part of the user address space.
[EINVAL] socket is already bound to an address and the protocol does not support binding to a new address. Alternatively, socket
may have been shut down.
[ENOTSOCK] socket does not refer to a socket.
[EOPNOTSUPP] socket is not of a type that can be bound to an address.
The following errors are specific to binding names in the UNIX domain.
[EACCES] A component of the path prefix does not allow searching or the node's parent directory denies write permission.
[EEXIST] A file already exists at the pathname. unlink(2) it first.
[EIO] An I/O error occurred while making the directory entry or allocating the inode.
[EISDIR] An empty pathname was specified.
[ELOOP] Too many symbolic links were encountered in translating the pathname. This is taken to be indicative of a looping sym-
bolic link.
[ENAMETOOLONG] A component of a pathname exceeded {NAME_MAX} characters, or an entire path name exceeded {PATH_MAX} characters.
[ENOENT] A component of the path name does not refer to an existing file.
[ENOTDIR] A component of the path prefix is not a directory.
[EROFS] The name would reside on a read-only file system.
LEGACY SYNOPSIS
#include <sys/types.h>
#include <sys/socket.h>
The include file <sys/types.h> is necessary.
SEE ALSO
connect(2), connectx(2), getsockname(2), listen(2), socket(2), compat(5)
HISTORY
The bind() function call appeared in 4.2BSD.
4.2 Berkeley Distribution March 18, 2015 4.2 Berkeley Distribution