As I approach doing server stuff again, my worry alarms go off...
What happens if I have a server.dmb and multiple hubbed games connect at once? I know that for webserver stuff, each gets its own copy, but I assume that's not the case for regular .dmbs.
I believe it's been said that a savefile can only be opened for writing by one process...what happens in this scenario:
I have a screenshot.dmb on the server to handle screenshot functionality for all the hubbed instances of the game.
Two instances of the game try to hook up at once.
Each sends a screenshot (which is large and takes a while to upload) to the server.
The server writes the screenshot to disk as a normal file and adds data for the screenshot to a savefile.
Is there some case where one of the games attempting to connect is going to fail? If so, is there a way for me to know it failed? Is there a case where writing to the savefile is going to fail?
Dec 22 2000, 4:22 pm