|
I have a socket server program supporting multiple connections. I
want to be able to gracefully shut down the server program. So I
thought I'd use a socket client to connect to the server program and
through a socket connection tell the server program to end.
In my client program, when I perform the gethostbyname function, it returns a null. So I deduced that it can't resolve since the
communication is 'redunant' (for lack of a better term), since the
client and server are already 'connnected' by virtue of their
existence on the same system.
So the question is can I use a socket client connection to tell my
server program to shutdown when both programs are on the same system?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.