Hello! I am currently attempting to build a very,
very, basic program that attempts to act like a calendar for a "server." Using this program I need to have the client program connect to the server program, have the client wait for the server to respond through a socket, then exit and the server continues its operation.
I could post code/files, however I feel as if this is a simple mistake that I am overlooking because I am too close to the project. My question is: why is the "server" program exiting prematurely and not looping indefinitely (which I assure you it is coded to do). In addition, the "server" program is ordered to run in the background (compiled with the syntax "./server.out 2300 &" with 2300 being the socket number)
An example of the error messages I am receiving are:
[1]+ Exit 1 ./server.out 2300
(this one occurs 90% of the time)
and the others are variations of this one... just instead of [1] it may be [2] or [3] and rarely the '+' becomes a '-' (minus).
HELP!
Thanks