Chris Nystrom - 2007-01-30

Logged In: YES
user_id=914661
Originator: YES

Ignore my note in BugID 1614495 on sourceforge. I think I like the old (existing) API is better. The library can manage the resource handles. No need to burden the programmer with this.

The thing that needs to change though, is that the library needs to inform the client of the resource handle to make sure that they stay in sync.

Right now as images are loaded the API returns a sequential number. This number comes from nio_lib, but nio_lib never informs the client of this number. The library just assumes that the client loads the resources in the same order (...display image #3...). There is nothing that makes sure that the client and the server are in sync on this. It works currently, so it is not that big of a deal, but I think it would be cleaner for the future to sent that number down to the client and make sure that the client and the server have the same resource handle for the same resource.