Tagged Questions
4
votes
3answers
49 views
How does the server find out what client port to send to?
As I understand it this is what happens when a client makes a connection request:
The server will be bound to a particular port number. The port number is always bound to a listening process. Since ...
0
votes
1answer
31 views
How to connect to port immedeately, avoiding socket_bind(): unable to bind address?
When running a code that is supposed to read from a TCP/IP port I often get the following message (depending exactly what language have been used):
socket_bind(): unable to bind address
I know that ...
2
votes
1answer
311 views
Why can't I use strace with rsh?
If I run rsh, it works, but prints some strange “Connection refused” messages at the beginning:
$ rsh localhost pwd
connect to address 127.0.0.1 port 544: Connection refused
Trying krb4 rsh...
...
1
vote
1answer
127 views
Default value for SO_RCVTIMEO option on Solaris
Is there any way to find out what is the default value set for option SO_RCVTIMEO on Solaris 10?
If there is a way to find out how would one go about changing it?
P.S. I am aware of ability of ...
1
vote
1answer
476 views
Adjusting rsync TCP timeout
I'm using rsync in my own C++ program by issueing the command system("rsync -rauzvq root@host:/folder");
I use this for keeping multiple systems in sync.
Now I have the problem that when a remote ...
2
votes
1answer
170 views
Closing socket connection on running console application
I am testing a chat bot and want to gracefully handle for times when the chat server isn't running so it can come back up when the service is available again. I have the programming handled. My ...
2
votes
1answer
169 views
Why does this simple Perl client not work?
I am fairly new to IPC with sockets and expect this issue is a simple one to resolve.
I'm trying to understand why I cannot get this example script from perldoc perlipc to run on my Ubuntu setup:
...
3
votes
1answer
1k views
Kill TIME_WAIT sockets immediately?
Is there anyway to kill those TIME_WAIT sockets immediately ? e.g output of netstat:
tcp 0 0 127.0.0.1:8080 127.0.0.1:41500 TIME_WAIT -
tcp 0 ...
3
votes
1answer
270 views
User associated with a socket
I use ss -p to see TCP sockets information. But process info are not printed for some sockets. Below:
$ ss -p4
State Recv-Q Send-Q Local Address:Port Peer Address:Port
ESTAB 0 0 ...
1
vote
1answer
281 views
How to limit all tcp traffic to the network interface the session was initiated on?
I have an embedded linux system with two network interfaces (lan0, wlan0) that are configured to the same subnet. A server on this system accepts tcp connections on both interfaces.
How I can assure ...
8
votes
1answer
586 views
Kernel socket structure and TCP_DIAG
I'm working on a software which connects to a Real Time data server (using TCP) and I have some connections dropping. My guess is that the clients do not read the data coming from the server fast ...
4
votes
1answer
901 views
How long is a TCP local socket address that has been bound unavailable after closing?
On Linux (my live servers are on RHEL 5.5 - the LXR links below are to the kernel version in that), man 7 ip says:
A TCP local socket address that has been bound is unavailable for some time after ...
3
votes
2answers
4k views
How do I reserve ports for my application?
How do I reserve a list of ports for my custom applications?
To be specific, the product I'm creating has a lot of processes and a lot of intercommunication between them.
The problem I'm having is ...