LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] socket programming

[ILUG] socket programming

nick_elliott at ie.ibm.com nick_elliott at ie.ibm.com
Thu Nov 9 14:25:42 GMT 2000



Hi guys,

I have a question relating to socket programming - something with which I
don't have a lot of confidence. I have written a socket program which
resides on a linux server. This program listens on port 5560 for
information coming from any one of 72 PC's. The program has a queue enabled
for up to 10 clients. However, every now and again, the socket program
hangs in mid-transfer. I don't know the reason for this - maybe someone
could advise. The transfer involves an ascii file.

However, I am trying to write another program at the moment that runs on
the server. The purpose of this program is to send a status request to the
server program. If it doesn't get a response within a certain amount of
time, then it kills and restarts the server program. The socket programs
are written in C. I have a script written which kills and restarts the
server program and the status program runs this. However, i cannot get the
status program to connect to a socket on the server. I am trying to connect
to the machine using port 5561. The server program uses 5560.

That probably isn't explained very well but does anyone have any ideas why
the status program ( running on the server ) wouldn't be able to connect to
a port on itself.

Mise Le Meas/Kind Regards/Mit Freundlichen Gruessen

Nick Elliott,
Disk Test Engineering,
Storage Systems Division,
IBM International Holdings
E-mail: Nick_Elliott at ie.ibm.com
Tel: +353-1-8153031






More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell