10-23-2005
How to set the timeout for the client
The scenerio is:
1. A server listens on a port number
2. If the server is down and the Client tries to connect
3. How to set the timeout for the client
Detailed explaination:
In a client server architecture over a TCP/IP, normally the server is started first which waits and listens for the client connection. Here if the client application is started first, it exits saying "Error in connecting to server" i.e it is not able to establish connection with the server application. Now, how to program such that either of the client or server application could be started first. Hint: Some kind of time out is maintained in the client application, sothat it waits for certain time to establish connection with the server.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
if a user login and never shutdown or exit...how do you set an automatic shutdown or timeout if the user leave the session on for 20 minutes?
thanks (3 Replies)
Discussion started by: ichiro
3 Replies
2. Shell Programming and Scripting
Hi all,
I want to set a timeout say 10 sec to shh prompt i.e. if no password is enetered for 10 sec prompt should again come to shell.
How can this be achieved ??
I am using Linux RHEL 5 and Solaris 10.
Pls help.
Thanks in adv.
VIKAS (3 Replies)
Discussion started by: vikas027
3 Replies
3. Shell Programming and Scripting
When I run a script where the 1st parameter is ip address
ftp -n -i -v $1
I hang here if the ip is wrong
how to set a timeout something like
if (20s not complete "ftp -n -i -v $1") then
echo "error"
fi
Thanks a lot. (14 Replies)
Discussion started by: uativan
14 Replies
4. UNIX for Dummies Questions & Answers
I've created a script that checks the health of a piece of equipment out in the field by first establishing that it is pingable, and then parsing
log files to gather information. Today I realized that there are times where the equipment may be pingable, and will not show any
immediate issues in... (1 Reply)
Discussion started by: DeCoTwc
1 Replies
5. AIX
Hi,
I have used "smit tcpip" to setup dhcp client but it does not work. Don't know why. Now I want to try using commands to do the job. I have studied commands chdev and mktcpip but did not find howto.
Please help. Thank you! (1 Reply)
Discussion started by: aixlover
1 Replies
6. Shell Programming and Scripting
SSHing into a machine can take a few seconds, but after I'm in, the commands return quickly. I was wondering if the timeout setting can be changed once I'm logged into the machine. Does anyone know if this can be set on the fly? The problem here is, if I have to set timeout = 10, it'll take 10... (1 Reply)
Discussion started by: mrwatkin
1 Replies
7. AIX
Friends,
Could anyone let me know - how to set the timeout value for ssh session to HMC? My HMC version is -- V7R7.4.0. I'm sure the version doesn't have anything to do with it.
Thanks,
-- Souvik (2 Replies)
Discussion started by: thisissouvik
2 Replies
8. Red Hat
How is it possible to set the screensaver timeout on red hat.
For solaris I understand it is :
for file in /usr/dt/config/*/sys.resources; do
dir=`dirname $file | sed s/usr/etc/`
mkdir -p $dir
echo 'dtsession*saverTimeout: 10' >>$dir/sys.resources
echo 'dtsession*lockTimeout: 10'... (0 Replies)
Discussion started by: alvinoo
0 Replies
9. Shell Programming and Scripting
I have a command to check the status of hostname and port number,
echo > /dev/tcp/hostname/80
echo $?
0
success case
echo > /dev/tcp/hostname/809999
I got the output
-------------------
connection timed out
It took almost 4 minutes to time out,,, how can I set it to 10 seconds?
my... (2 Replies)
Discussion started by: sam@sam
2 Replies
10. Linux
Hello friends,
I work on Linux servers via SSH (putty) and run "screen" to preserve my sessions so I can attach/detach them at anytime I wish without losing the connectivity/process disruption which is working perfectly fine.
As my team members also have root access to those servers, it is... (7 Replies)
Discussion started by: prvnrk
7 Replies
LEARN ABOUT DEBIAN
app::kgb::client::serverref
App::KGB::Client::ServerRef(3pm) User Contributed Perl Documentation App::KGB::Client::ServerRef(3pm)
NAME
App::KGB::Client::ServerRef - server instance in KGB client
SYNOPSIS
use App::KGB::Client::ServerRef;
my $s = App::KGB::Client::ServerRef->new(
{ uri => "http://some.server:port/",
password => 's3cr1t',
timeout => 5
}
);
$s->send_changes( $client, $commit, $branch, $module );
DESCRIPTION
App::KGB::Client::ServerRef is used in App::KGB::Client to refer to remote KGB server instances. It encapsulates sending change sets to the
remote server, maintaining the SOAP protocol encapsulation and authentication to the remote KGB server.
CONSTRUCTOR
new The usual constructor. Accepts a hashref of initialiers.
FIELDS
uri (mandatory)
The URI of the remote KGB server. Something like "http://some.host:port/".
proxy
This is the SOAP proxy used to communicate with the server. If omitted, defaults to the value of uri field, with "?session=KGB"
appended.
password (mandatory)
Password, to be used for authentication to the remote KGB server.
timeout
Specifies the timeout for the SOAP transaction in seconds. Defaults to 15 seconds.
verbose
Be verbose about communicating with KGB server.
METHODS
send_changes (message parameters)
Transmits the change set and all data about it along with the necessary authentication hash. If error occures, an exception is thrown.
Message parameters are passed as arguments in the following order:
Client instance (App::KGB::Client)
Commit (an instance of App::KGB::Commit)
Branch
Module
perl v5.12.4 2011-09-15 App::KGB::Client::ServerRef(3pm)