Search Results

Search: Posts Made By: satish@123
Forum: Programming 09-24-2012
27,837
Posted By satish@123
So connect, select and again connect based on the...
So connect, select and again connect based on the return codes and errno indications achieve smooth non blocking connection but I am still thinking of looping connect call and I verified the truss to...
Forum: Programming 09-24-2012
27,837
Posted By satish@123
Thank You. I went for this looping logic because...
Thank You. I went for this looping logic because socket by default is writable. Rebooting the remote machine creating EPIPE and FD_ISSET(s, &writeFDs) returning success.

Do I have to do connect...
Forum: Programming 09-24-2012
27,837
Posted By satish@123
I agree to use select but I want to correct that...
I agree to use select but I want to correct that I don't loop 5 times wasting CPU cycle everytime. Worst case is 5 times. If the errno is EALREADY or EINPROGRESS I retry connect other wise I see for...
Forum: Programming 09-24-2012
27,837
Posted By satish@123
Looping connect call for a non blocking socket
will there be any unexpected results on looping connect call for a non blocking socket to determine the connection based on error code. I am getting connection unsuccessful intermittently and so...
2,289
Posted By satish@123
getservbyname returning NULL
OS : Solaris 10

When I try to get the "echo" service port, getservbyname is returning null.

I checked - /etc/services having an entry for echo -

echo 7/tcp (But still getservbyname...
6,845
Posted By satish@123
rsync installation without dependencies
rsync is having dependencies - libpopt, libiconv, libintl and libgcc
rsync need to be distributed to different machines and this is forcing to make sure these dependencies available in those...
39,876
Posted By satish@123
$HOME permission restricted to 700 did help....
$HOME permission restricted to 700 did help. Thanks.
39,876
Posted By satish@123
It didn't help. Any issue if the architecture...
It didn't help. Any issue if the architecture differs, I am using solaris 10 sparc and solaris 10 X86 machines.
39,876
Posted By satish@123
I got the same again. Again it is prompted for...
I got the same again. Again it is prompted for password. I followed the exact steps by removing space at . ssh to .ssh.
39,876
Posted By satish@123
scp without prompting for password
I am trying to copy a file from remote machine using scp. I followed the steps to configure public/private key usage. But still prompting for password when I do ssh.

I did the following steps to...
Forum: Programming 03-31-2011
4,825
Posted By satish@123
how to change the default background color for x windows
I am using uil to build the widgets. I compiled the below code using gcc 3.4.6 compiler. Launched x window in light gray color. How to change the default color of the window?


#include...
Forum: Programming 12-22-2010
5,624
Posted By satish@123
Thank You. I have a signal handler and getrequest...
Thank You. I have a signal handler and getrequest is a blocked wait and it acts when message received.
I wonder as long as main goes the thread will go, even for months. In main I can create a new...
Forum: Programming 12-22-2010
5,624
Posted By satish@123
Infinite thread
I created a thread which pings a machine for every 15 seconds. I made my thread function in infinite loop. Main process also in infinite loop and will run for years. I wonder the thread will continue...
Forum: Programming 09-17-2010
3,723
Posted By satish@123
nanosleep in librt is same as in posix4? There...
nanosleep in librt is same as in posix4? There won't be much concern on what we link?
Forum: Programming 09-17-2010
3,723
Posted By satish@123
nanosleep
Application runs on both solaris 6 and 10.
solaris 6 having only posix4.so library, solaris 10 having libposix4.so and librt.so

Can we link application to lposix4 instead of lrt for nanosleep,...
Forum: Programming 09-08-2010
12,597
Posted By satish@123
I am connecting to port 7(echo service) in the...
I am connecting to port 7(echo service) in the remote machine.
suppose port 7 is not running in the remote machine I do not want to wait in connect call for long time.. so I am using non blocking...
Forum: Programming 09-08-2010
9,577
Posted By satish@123
I am connecting to port 7(echo service) in the...
I am connecting to port 7(echo service) in the remote machine.
suppose port 7 is not running in the remote machine I do not want to wait in connect call for long time.. so I am using non blocking...
Forum: Programming 09-06-2010
12,597
Posted By satish@123
write on Non Blocking Socket
How to know whether socket is ready for write.
select(maxfds, (fd_set *)NULL, &writefds, NULL, &timeout);
By default socket is set for write without checking whether it would block or not? If so...
Forum: Programming 09-05-2010
9,577
Posted By satish@123
non blocking connect
OS : solaris 10 X86

I created stream socket, tries to connect to port 7 on the remote machine.
After doing the non blocking connect call I did select with time out value is 3 secs. I am always...
Forum: Programming 06-14-2010
6,521
Posted By satish@123
deleting
deleting
Forum: Programming 06-14-2010
6,521
Posted By satish@123
Yes in x86 machine I am getting the below error ...
Yes in x86 machine I am getting the below error
telnet: Unable to connect to remote host: Connection refused

what should I correct
Forum: Programming 06-14-2010
6,521
Posted By satish@123
Client machine is Solaris Sparc and it is trying...
Client machine is Solaris Sparc and it is trying to connect to solaris X86
Forum: Programming 06-11-2010
6,521
Posted By satish@123
echo: Connection refused
OS : Solaris sparc

In c program After socket created when I do Connect() it results "Connection refused", but the system is online and I am able to do telnet, ping everything, but it says...
Forum: Programming 06-11-2010
2,926
Posted By satish@123
Thanks Jim, other query is what do we have to...
Thanks Jim, other query is what do we have to correct if socket connection results
"connection refused" though the server is online

---------- Post updated 06-11-10 at 12:25 AM ----------...
Forum: Programming 06-10-2010
2,926
Posted By satish@123
Any reasonable wait time that we should wait for...
Any reasonable wait time that we should wait for socket connection. I am waiting for 2 secs three tries and if still not connected closing the socket and saying machine not reachable.
Showing results 1 to 25 of 64

 
All times are GMT -4. The time now is 11:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy