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
Disk Test Engineering,
Storage Systems Division,
IBM International Holdings
E-mail: Nick_Elliott at ie.ibm.com
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!